From a54f6ae81b54ca59bf913bba16f271a35ca08d9d Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Tue, 25 Mar 2025 21:11:42 +0530 Subject: Add web.tabs.list and web.tabs.select + example for tab next/prev and selection ui --- src/InputMediator.cpp | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'src/InputMediator.cpp') 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, -- cgit v1.3.1