aboutsummaryrefslogtreecommitdiffstats
path: root/zellij-utils/src/plugin_api/key.proto
diff options
context:
space:
mode:
authorAram Drevekenin <aram@poor.dev>2024-05-27 16:15:09 +0200
committerGitHub <noreply@github.com>2024-05-27 16:15:09 +0200
commit62c37a87cca5aaa8b0e580b973b93513ed616dba (patch)
tree5836dba1572dd4e95cc6e312f82b1ad4f263957e /zellij-utils/src/plugin_api/key.proto
parentdocs(changelog): ooo plugin events fix (diff)
downloadsl0ppij-62c37a87cca5aaa8b0e580b973b93513ed616dba.tar.gz
sl0ppij-62c37a87cca5aaa8b0e580b973b93513ed616dba.tar.xz
sl0ppij-62c37a87cca5aaa8b0e580b973b93513ed616dba.zip
feat(keybindings): support multiple modifiers (eg. Ctrl+Alt) and the kitty keyboard protocol (#3383)
* parse kitty keys from STDIN * work * work * replace internal Key representation with the new KeyWithModifier in all the places * work * work * allow disabling with config * adjust ordering * handle enabling/disabling properly on the client * support multiple modifiers without kitty too * normalize uppercase keys * get tests to pass * various cleanups * style(fmt): rustfmt
Diffstat (limited to 'zellij-utils/src/plugin_api/key.proto')
-rw-r--r--zellij-utils/src/plugin_api/key.proto10
1 files changed, 10 insertions, 0 deletions
diff --git a/zellij-utils/src/plugin_api/key.proto b/zellij-utils/src/plugin_api/key.proto
index 9a573483..5a5a5819 100644
--- a/zellij-utils/src/plugin_api/key.proto
+++ b/zellij-utils/src/plugin_api/key.proto
@@ -6,6 +6,8 @@ message Key {
enum KeyModifier {
CTRL = 0;
ALT = 1;
+ SHIFT = 2;
+ SUPER = 3;
}
enum NamedKey {
@@ -34,6 +36,13 @@ message Key {
F12 = 22;
Tab = 23;
Esc = 24;
+ CapsLock = 25;
+ ScrollLock = 26;
+ NumLock = 27;
+ PrintScreen = 28;
+ Pause = 29;
+ Menu = 30;
+ Enter = 31;
}
enum Char {
@@ -80,4 +89,5 @@ message Key {
NamedKey key = 2;
Char char = 3;
}
+ repeated KeyModifier additional_modifiers = 4;
}