aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--termkey.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/termkey.c b/termkey.c
index 805f7af..d511b4a 100644
--- a/termkey.c
+++ b/termkey.c
@@ -376,6 +376,8 @@ static termkey_result getkey_csi(termkey_t *tk, size_t introlen, termkey_key *ke
if(args > 1 && arg[1] != -1)
key->modifiers = arg[1] - 1;
+ else
+ key->modifiers = 0;
key->flags = TERMKEY_KEYFLAG_SPECIAL;