summaryrefslogtreecommitdiff
path: root/usr.bin/tmux/key-string.c
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2020-05-20 06:13:10 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2020-05-20 06:13:10 +0000
commit32c66456df37b84360355ff1b46d25dd0e7a7abb (patch)
tree7846545186fda9be05111f0ef141dc65354efec1 /usr.bin/tmux/key-string.c
parentfe37da7ca4b355d71dd8351a4cc552ae33596997 (diff)
Key strings need to include the cursor and keypad flags now since the
output key lookup expects them already set.
Diffstat (limited to 'usr.bin/tmux/key-string.c')
-rw-r--r--usr.bin/tmux/key-string.c42
1 files changed, 21 insertions, 21 deletions
diff --git a/usr.bin/tmux/key-string.c b/usr.bin/tmux/key-string.c
index 9ac60f44999..d3713774dc3 100644
--- a/usr.bin/tmux/key-string.c
+++ b/usr.bin/tmux/key-string.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: key-string.c,v 1.58 2020/05/16 16:35:13 nicm Exp $ */
+/* $OpenBSD: key-string.c,v 1.59 2020/05/20 06:13:09 nicm Exp $ */
/*
* Copyright (c) 2007 Nicholas Marriott <nicholas.marriott@gmail.com>
@@ -62,28 +62,28 @@ static const struct {
{ "Escape", '\033' },
/* Arrow keys. */
- { "Up", KEYC_UP },
- { "Down", KEYC_DOWN },
- { "Left", KEYC_LEFT },
- { "Right", KEYC_RIGHT },
+ { "Up", KEYC_UP|KEYC_CURSOR },
+ { "Down", KEYC_DOWN|KEYC_CURSOR },
+ { "Left", KEYC_LEFT|KEYC_CURSOR },
+ { "Right", KEYC_RIGHT|KEYC_CURSOR },
/* Numeric keypad. */
- { "KP/", KEYC_KP_SLASH },
- { "KP*", KEYC_KP_STAR },
- { "KP-", KEYC_KP_MINUS },
- { "KP7", KEYC_KP_SEVEN },
- { "KP8", KEYC_KP_EIGHT },
- { "KP9", KEYC_KP_NINE },
- { "KP+", KEYC_KP_PLUS },
- { "KP4", KEYC_KP_FOUR },
- { "KP5", KEYC_KP_FIVE },
- { "KP6", KEYC_KP_SIX },
- { "KP1", KEYC_KP_ONE },
- { "KP2", KEYC_KP_TWO },
- { "KP3", KEYC_KP_THREE },
- { "KPEnter", KEYC_KP_ENTER },
- { "KP0", KEYC_KP_ZERO },
- { "KP.", KEYC_KP_PERIOD },
+ { "KP/", KEYC_KP_SLASH|KEYC_KEYPAD },
+ { "KP*", KEYC_KP_STAR|KEYC_KEYPAD },
+ { "KP-", KEYC_KP_MINUS|KEYC_KEYPAD },
+ { "KP7", KEYC_KP_SEVEN|KEYC_KEYPAD },
+ { "KP8", KEYC_KP_EIGHT|KEYC_KEYPAD },
+ { "KP9", KEYC_KP_NINE|KEYC_KEYPAD },
+ { "KP+", KEYC_KP_PLUS|KEYC_KEYPAD },
+ { "KP4", KEYC_KP_FOUR|KEYC_KEYPAD },
+ { "KP5", KEYC_KP_FIVE|KEYC_KEYPAD },
+ { "KP6", KEYC_KP_SIX|KEYC_KEYPAD },
+ { "KP1", KEYC_KP_ONE|KEYC_KEYPAD },
+ { "KP2", KEYC_KP_TWO|KEYC_KEYPAD },
+ { "KP3", KEYC_KP_THREE|KEYC_KEYPAD },
+ { "KPEnter", KEYC_KP_ENTER|KEYC_KEYPAD },
+ { "KP0", KEYC_KP_ZERO|KEYC_KEYPAD },
+ { "KP.", KEYC_KP_PERIOD|KEYC_KEYPAD },
/* Mouse keys. */
KEYC_MOUSE_STRING(MOUSEDOWN1, MouseDown1),