aboutsummaryrefslogtreecommitdiff
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 16:53:01 +0000
commit21fe01099cb2ff84b1530574a228aebd614668bb (patch)
tree60feece469e6402dbd4002a84b9684c539a96733
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
-rw-r--r--input.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/input.c b/input.c
index 84c83ea8..869e1c67 100644
--- a/input.c
+++ b/input.c
@@ -1230,7 +1230,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;
}