summaryrefslogtreecommitdiff
path: root/xmake/core/ui/program.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-11-17 12:35:09 +0800
committerruki <[email protected]>2021-11-17 12:35:09 +0800
commite11da30f5fa33d81172864ba336a8dd6992d5331 (patch)
treeb5e59a72b4f1f2e73006d02046b08d59555c19c2 /xmake/core/ui/program.lua
parentdcffc69b622da2048f6ee529f5974cb66cd6dc1a (diff)
fix keymap
Diffstat (limited to 'xmake/core/ui/program.lua')
-rw-r--r--xmake/core/ui/program.lua8
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