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 /include/InputMediator.hpp | |
| parent | 4c762b2516bc664293c2aec072074f1e34dda8c3 (diff) | |
| download | null-browser-1bd89088f1bb6103a34584ae39157abf2f732742.tar.gz null-browser-1bd89088f1bb6103a34584ae39157abf2f732742.zip | |
Add action for keymaps + test
Diffstat (limited to 'include/InputMediator.hpp')
| -rw-r--r-- | include/InputMediator.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/InputMediator.hpp b/include/InputMediator.hpp index 4aaa6c1..7194ff9 100644 --- a/include/InputMediator.hpp +++ b/include/InputMediator.hpp @@ -4,6 +4,7 @@ #include <QtCore> #include "LuaRuntime.hpp" +#include "keymap/KeymapEvaluator.hpp" #include "utils.hpp" #include "widgets/WebViewStack.hpp" @@ -11,13 +12,16 @@ class InputMediator : public QObject { Q_OBJECT public: - InputMediator(WebViewStack *webViewStack, LuaRuntime *luaRuntime); + InputMediator(WebViewStack *webViewStack, LuaRuntime *luaRuntime, + KeymapEvaluator *keymapEvaluator); + ~InputMediator(); DELEGATE(webViewStack, openUrl, openUrl) DELEGATE(webViewStack, currentUrl, currentUrl) DELEGATE(webViewStack, next, nextWebView) DELEGATE(webViewStack, previous, previousWebView) DELEGATE(webViewStack, closeCurrent, closeCurrentWebView) + DELEGATE(keymapEvaluator, evaluate, evaluateKeymap) private: void evaluateCommand(QString command); @@ -25,4 +29,5 @@ private: private: WebViewStack *webViewStack; LuaRuntime *luaRuntime; + KeymapEvaluator *keymapEvaluator; }; |
