diff options
Diffstat (limited to 'xmake/core/ui/program.lua')
| -rw-r--r-- | xmake/core/ui/program.lua | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/xmake/core/ui/program.lua b/xmake/core/ui/program.lua index f537a2daf..49eff8679 100644 --- a/xmake/core/ui/program.lua +++ b/xmake/core/ui/program.lua @@ -350,10 +350,10 @@ function program:_key_map() -- -- @see https://github.com/xmake-io/xmake/issues/1610 -- https://github.com/wmcbrine/PDCurses/blob/HEAD/curses.h#L766-L774 - [curses.KEY_C2 ] = "Down", - [curses.KEY_A2 ] = "Up", - [curses.KEY_B1 ] = "Left", - [curses.KEY_B3 ] = "Right" + [curses.KEY_C2 or -1 ] = "Down", + [curses.KEY_A2 or -1 ] = "Up", + [curses.KEY_B1 or -1 ] = "Left", + [curses.KEY_B3 or -1 ] = "Right" } end return self._KEYMAP |
