From ba17a96c48652053a14d37501dff1bc0a334ce45 Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 15 May 2020 00:31:07 +0800 Subject: fix switch panel with tab key --- xmake/core/ui/panel.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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() -- cgit v1.3.1