summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--main.lua6
-rw-r--r--rt.lua11
2 files changed, 17 insertions, 0 deletions
diff --git a/main.lua b/main.lua
index e9010c5..8f79a78 100644
--- a/main.lua
+++ b/main.lua
@@ -217,6 +217,12 @@ input.define_mapping('SEARCH', {
['Ctrl+e'] = {rt.search_cursor_end},
['Ctrl+s'] = {rt.toggle_menu_sort},
+
+ _targets = {
+ menu = {
+ ['MBTN_LEFT_DBL'] = {rt.search_dbl_click_menu},
+ },
+ },
})
input.set_mapping('MENU')
input.activate(true)
diff --git a/rt.lua b/rt.lua
index c234415..e195272 100644
--- a/rt.lua
+++ b/rt.lua
@@ -759,6 +759,17 @@ function rt.dbl_right_click_menu()
rt.open_option_info(menu.options[pos])
end
+function rt.search_dbl_click_menu()
+ local line = osd.mstate.option_line
+ if line >= -1 then
+ return
+ end
+
+ state.depth = state.depth + line + 1
+ osd:dirty()
+ input.set_mapping('MENU')
+end
+
function rt.reload_data()
if state.depth > 1 then
osd:flash_error('Can only reload data from root menu')