aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Eklöf <daniel@ekloef.se>2023-04-26 16:28:07 +0000
committerDaniel Eklöf <daniel@ekloef.se>2023-04-26 16:34:03 +0000
commitc13495e26ef7c239b330dccf1afef44430b15543 (patch)
tree15ff06f3e1188bce2db01811139e6399f5d74ba3
parentcsi: implement "CSI ? m" (diff)
kitty: F3 is no longer allowed to emit CSI R
The original kitty keyboard specification allowed F3 to emit either CSI R, or CSI 13~. Support for CSI R was removed in later revisions of the protocol, since it collides with "Cursor Position Report" sequences.
-rw-r--r--CHANGELOG.md7
-rw-r--r--kitty-keymap.h2
2 files changed, 8 insertions, 1 deletions
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 0d16a6ed..d64392a2 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -49,6 +49,13 @@
### Changed
+
+* Kitty keyboard protocol: F3 is now encoded as `CSI 13~` instead of
+ `CSI R`. The kitty keyboard protocol originally allowed F3 to be
+ encoded as `CSI R`, but this was removed from the specification
+ since `CSI R` conflicts with the _”Cursor Position Report”_.
+
+
### Deprecated
### Removed
### Fixed
diff --git a/kitty-keymap.h b/kitty-keymap.h
index eba4923a..ae911c4f 100644
--- a/kitty-keymap.h
+++ b/kitty-keymap.h
@@ -70,7 +70,7 @@ static const struct kitty_key_data kitty_keymap[] = {
{XKB_KEY_F1, 1, 'P', false},
{XKB_KEY_F2, 1, 'Q', false},
- {XKB_KEY_F3, 1, 'R', false},
+ {XKB_KEY_F3, 13, '~', false},
{XKB_KEY_F4, 1, 'S', false},
{XKB_KEY_F5, 15, '~', false},
{XKB_KEY_F6, 17, '~', false},