diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-03-25 21:11:42 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-03-25 21:11:42 +0530 |
| commit | a54f6ae81b54ca59bf913bba16f271a35ca08d9d (patch) | |
| tree | d8e5be08f87cc2d90b984fc6a9e8323457785606 /src/InputMediator.cpp | |
| parent | 1284f8cf39e8ba44e837d4dac0bace89cb7a0c26 (diff) | |
| download | null-browser-a54f6ae81b54ca59bf913bba16f271a35ca08d9d.tar.gz null-browser-a54f6ae81b54ca59bf913bba16f271a35ca08d9d.zip | |
Add web.tabs.list and web.tabs.select + example for tab next/prev and selection ui
Diffstat (limited to '')
| -rw-r--r-- | src/InputMediator.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/InputMediator.cpp b/src/InputMediator.cpp index 2a36665..91393c2 100644 --- a/src/InputMediator.cpp +++ b/src/InputMediator.cpp @@ -23,9 +23,13 @@ InputMediator::InputMediator(WebViewStack *webview_stack, &WebViewStack::webview_history_forward); connect(lua_runtime, &LuaRuntime::webview_closed, webview_stack, &WebViewStack::close); + connect(lua_runtime, &LuaRuntime::webview_selected, webview_stack, + &WebViewStack::focus_webview); lua_runtime->set_current_tab_id_fetcher( [this]() { return this->webview_stack->current_webview_id(); }); + lua_runtime->set_webview_data_list_fetcher( + [this]() { return this->webview_stack->get_webview_list(); }); } void InputMediator::add_keymap(const QString &mode_string, |
