summaryrefslogtreecommitdiff
path: root/xmake/core/ui/program.lua
diff options
context:
space:
mode:
authorruki <[email protected]>2021-11-17 11:29:56 +0800
committerGitHub <[email protected]>2021-11-17 11:29:56 +0800
commit7f3706c2ad219d6632b3be0a4705042ced0d0233 (patch)
treeb613ed88ddf385f7562a2a02c518ca50dacbdd61 /xmake/core/ui/program.lua
parentb7e124e4f8e77e75025717cee6b6066dfa34d813 (diff)
Update program.lua
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