diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-18 21:57:03 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-18 23:36:03 +0530 |
| commit | 1bd89088f1bb6103a34584ae39157abf2f732742 (patch) | |
| tree | 2f8fd292bbfb710979bdc44507156524a97148b7 /src/InputMediator.cpp | |
| parent | 4c762b2516bc664293c2aec072074f1e34dda8c3 (diff) | |
| download | null-browser-1bd89088f1bb6103a34584ae39157abf2f732742.tar.gz null-browser-1bd89088f1bb6103a34584ae39157abf2f732742.zip | |
Add action for keymaps + test
Diffstat (limited to 'src/InputMediator.cpp')
| -rw-r--r-- | src/InputMediator.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
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; } |
