aboutsummaryrefslogtreecommitdiff
path: root/src/WindowActionRouter.hpp
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-20 12:57:07 +0530
committerAkshay Nair <phenax5@gmail.com>2025-05-02 16:15:17 +0530
commitb4b6a646b3a7a7f6c7e990c67f208b76f4b5f748 (patch)
tree7f18775a63594acf0187668af63766dd72b9f66f /src/WindowActionRouter.hpp
parent75157006bf6f1176f64e87695343980b16908bb6 (diff)
downloadnull-browser-b4b6a646b3a7a7f6c7e990c67f208b76f4b5f748.tar.gz
null-browser-b4b6a646b3a7a7f6c7e990c67f208b76f4b5f748.zip
Refactor + expose managing mode to inside lua
Diffstat (limited to 'src/WindowActionRouter.hpp')
-rw-r--r--src/WindowActionRouter.hpp11
1 files changed, 8 insertions, 3 deletions
diff --git a/src/WindowActionRouter.hpp b/src/WindowActionRouter.hpp
index 65124ef..b749642 100644
--- a/src/WindowActionRouter.hpp
+++ b/src/WindowActionRouter.hpp
@@ -7,6 +7,8 @@
#include <mutex>
#include "EventQueue.hpp"
+#include "keymap/KeymapEvaluator.hpp"
+#include "utils.hpp"
#include "widgets/BrowserWindow.hpp"
#include "widgets/WebViewStack.hpp"
@@ -35,15 +37,18 @@ public:
WebViewId fetch_current_view_id(WindowId win_id = 0);
QList<WebViewData> fetch_webview_data_list(WindowId win_id = 0);
QVariant fetch_config_value(const QString &key);
- QString fetch_current_search_text() const;
+ KeyMode fetch_current_mode() const;
- DELEGATE((&event_queue), dispatch_event, dispatch_event);
- DELEGATE((&event_queue), register_event, register_event)
+ DEFINE_GETTER(fetch_current_search_text, current_search_text)
+
+ DELEGATE(&event_queue, dispatch_event, dispatch_event)
+ DELEGATE(&event_queue, register_event, register_event)
protected:
WindowActionRouter() = default;
void add_keymap(const QString &mode_string, const QString &keyseq, std::function<void()> action);
+ void find_current_search_text(WebViewId webview_id, bool forward);
signals:
void new_window_requested(const QUrl &url);