diff options
| author | ruki <[email protected]> | 2020-05-15 00:31:07 +0800 |
|---|---|---|
| committer | ruki <[email protected]> | 2020-05-14 21:06:43 +0800 |
| commit | ba17a96c48652053a14d37501dff1bc0a334ce45 (patch) | |
| tree | 66c4bf3c47ee5e01d7ec1e1772b368b1b8f7b280 | |
| parent | 90ca03a34844f79e84634e3b8ee97fb58ae1c39c (diff) | |
fix switch panel with tab key
| -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() |
