aboutsummaryrefslogtreecommitdiff
path: root/input.c
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2021-12-07 19:26:12 +0000
committerDaniel Eklöf <daniel@ekloef.se>2021-12-08 17:05:56 +0000
commitf3f3f600404d4c565e8223df61220e483e382491 (patch)
treebb3ec395119250afcec15d4d56f4c8ffd4071527 /input.c
parentkitty: add ISO_Level{3,5}_Shift keys (diff)
kitty: only emit plain text on key press- and repeat events
That is, release events always generate CSIs
Diffstat (limited to 'input.c')
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index f0acc356..0242371a 100644
--- a/input.c
+++ b/input.c
@@ -1225,7 +1225,7 @@ kitty_kbd_protocol(struct seat *seat, struct terminal *term,
}
/* Plain-text without modifiers, or commposed text, is emitted as-is */
- if (is_text) {
+ if (is_text && !released) {
term_to_slave(term, utf8, count);
return true;
}