diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-30 14:45:05 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-30 14:45:05 +0530 |
| commit | 997891b27d17377111f484c62ba41caf15475d72 (patch) | |
| tree | 836cacc9d5936ea8fb648e3eb8c66adf468b4778 /src/WindowActionRouter.hpp | |
| parent | 23b8c2c0da0317562925d574e774cedb6a93a7ac (diff) | |
| download | null-browser-997891b27d17377111f484c62ba41caf15475d72.tar.gz null-browser-997891b27d17377111f484c62ba41caf15475d72.zip | |
Fix issue with keymap/webview setup on init
Diffstat (limited to 'src/WindowActionRouter.hpp')
| -rw-r--r-- | src/WindowActionRouter.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/src/WindowActionRouter.hpp b/src/WindowActionRouter.hpp index 83c4137..9a5059b 100644 --- a/src/WindowActionRouter.hpp +++ b/src/WindowActionRouter.hpp @@ -15,6 +15,8 @@ public: return router; } + void initialize(); + void add_window(BrowserWindow *window); const WindowMap &windows(); @@ -22,7 +24,10 @@ public: QList<WebViewData> fetch_webview_data_list(WindowId win_id = 0); protected: - WindowActionRouter(); + WindowActionRouter() = default; + + void add_keymap(const QString &mode_string, const QString &keyseq, + std::function<void()> action); private: WindowMap window_map; |
