From 1bd89088f1bb6103a34584ae39157abf2f732742 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 18 Mar 2025 21:57:03 +0530 Subject: Add action for keymaps + test --- src/InputMediator.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'src/InputMediator.cpp') diff --git a/src/InputMediator.cpp b/src/InputMediator.cpp index 350d8ac..f935ad2 100644 --- a/src/InputMediator.cpp +++ b/src/InputMediator.cpp @@ -7,8 +7,10 @@ #include "LuaRuntime.hpp" #include "widgets/WebViewStack.hpp" -InputMediator::InputMediator(WebViewStack *webViewStack, LuaRuntime *luaRuntime) - : QObject(), webViewStack(webViewStack), luaRuntime(luaRuntime) { +InputMediator::InputMediator(WebViewStack *webViewStack, LuaRuntime *luaRuntime, + KeymapEvaluator *keymapEvaluator) + : QObject(), webViewStack(webViewStack), luaRuntime(luaRuntime), + keymapEvaluator(keymapEvaluator) { connect(luaRuntime, &LuaRuntime::urlOpened, webViewStack, &WebViewStack::openUrl); } @@ -40,3 +42,5 @@ void InputMediator::evaluateCommand(QString command) { break; } } + +InputMediator::~InputMediator() { delete webViewStack; } -- cgit v1.3.1