diff options
Diffstat (limited to 'rt.lua')
| -rw-r--r-- | rt.lua | 11 |
1 files changed, 5 insertions, 6 deletions
@@ -1,19 +1,18 @@ -- Copyright 2025 David Vazgenovich Shakaryan local config = require('config') +local input = require('input') local util = require('util') local rt = {} local state local osd -local input local ctx -function rt.init(_state, _osd, _input, _ctx) +function rt.init(_state, _osd, _ctx) state = _state osd = _osd - input = _input ctx = _ctx end @@ -911,7 +910,7 @@ function rt.start_search() end osd:dirty() - input.set_key_mapping('SEARCH') + input.set_mapping('SEARCH') end function rt.end_search() @@ -920,7 +919,7 @@ function rt.end_search() menu.title = 'Search results: <text>' .. ' <colour.info>(<num_matches>/<num_total>)' osd:dirty() - input.set_key_mapping('MENU') + input.set_mapping('MENU') end function rt.cancel_search() @@ -938,7 +937,7 @@ function rt.cancel_search() menu.search_active = false state.depth = state.depth - 1 osd:dirty() - input.set_key_mapping('MENU') + input.set_mapping('MENU') end function rt.toggle_menu_sort() |
