From c13495e26ef7c239b330dccf1afef44430b15543 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20Ekl=C3=B6f?= Date: Wed, 26 Apr 2023 18:28:07 +0200 Subject: [PATCH] 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. --- CHANGELOG.md | 7 +++++++ kitty-keymap.h | 2 +- 2 files changed, 8 insertions(+), 1 deletion(-) 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},