diff options
| -rw-r--r-- | xmake/core/ui/panel.lua | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/xmake/core/ui/panel.lua b/xmake/core/ui/panel.lua index 84ffdf115..7cff86eff 100644 --- a/xmake/core/ui/panel.lua +++ b/xmake/core/ui/panel.lua @@ -280,7 +280,10 @@ function panel:on_event(e) -- select view? if e.type == event.ev_keyboard then - if e.key_name == "Right" or e.key_name == "Tab" then + -- @note we also use '-' to switch them on termux without right/left and + -- we cannot use tab, because we still need swith views on windows. e.g. inputdialog + -- @see https://github.com/tboox/ltui/issues/11 + if e.key_name == "Right" or e.key_name == "-" then return self:select_next() elseif e.key_name == "Left" then return self:select_prev() |
