summaryrefslogtreecommitdiff
path: root/xmake/core/ui/program.lua
diff options
context:
space:
mode:
Diffstat (limited to 'xmake/core/ui/program.lua')
-rw-r--r--xmake/core/ui/program.lua9
1 files changed, 9 insertions, 0 deletions
diff --git a/xmake/core/ui/program.lua b/xmake/core/ui/program.lua
index 0ebd6377a..f537a2daf 100644
--- a/xmake/core/ui/program.lua
+++ b/xmake/core/ui/program.lua
@@ -345,6 +345,15 @@ function program:_key_map()
[curses.KEY_SHOME ] = "ShiftHome",
[curses.KEY_SLEFT ] = "ShiftLeft",
[curses.KEY_SRIGHT ] = "ShiftRight",
+
+ -- register virtual keys
+ --
+ -- @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"
}
end
return self._KEYMAP