input: kitty keyboard protocol and hex codepoint entry

Signed-off-by: NotAShelf <raf@notashelf.dev>
Change-Id: I0f58c82752b9d7a8df35fe78f034c0be6a6a6964
This commit is contained in:
raf 2026-06-25 15:00:39 +03:00
commit e04ffc6649
No known key found for this signature in database
GPG key ID: 29D95B64378DB4BF
8 changed files with 544 additions and 15 deletions

View file

@ -25,6 +25,7 @@ pub enum Action {
JumpPromptDown,
PipeCommandOutput,
UrlMode,
UnicodeInput,
}
impl Action {
@ -47,6 +48,7 @@ impl Action {
"jump-prompt-down" => Self::JumpPromptDown,
"pipe-command-output" => Self::PipeCommandOutput,
"url-mode" => Self::UrlMode,
"unicode-input" => Self::UnicodeInput,
_ => return None,
})
}
@ -185,6 +187,7 @@ const DEFAULT_BINDINGS: &[(&str, &str)] = &[
("Ctrl+Shift+Up", "jump-prompt-up"),
("Ctrl+Shift+Down", "jump-prompt-down"),
("Ctrl+Shift+O", "url-mode"),
("Ctrl+Shift+U", "unicode-input"),
];
/// Map a key token to a keysym: a single character, or a named special key.