T44: herdr's shortcuts work, which a user found dead: under kitty's flags a key Shift makes a symbol of goes as its own key with Shift, the symbol its alternate, as Ghostty sends it, read from the layout gpui reads on macOS and Windows; on Windows keys that type no text go as win32-input-mode records, which ConPTY asks for and herdr reads, as Windows Terminal sends them; on Linux gpui keeps no key code, which the docs say; shot learns wait, n and ]
This commit is contained in:
19 files changed
+548
-118
No files matched your search
@@ -42,6 +42,7 @@ fn main() {
|
||||
cx.background_executor().timer(Duration::from_secs(1)).await;
|
||||
for spec in &keys {
|
||||
match spec.as_str() {
|
||||
"wait" => cx.background_executor().timer(Duration::from_secs(1)).await,
|
||||
"to:main" => {
|
||||
aim = main;
|
||||
capture::front(number(aim, cx)).expect("the window on screen");
|
||||
|
||||
@@ -12,7 +12,7 @@ use objc::{
|
||||
};
|
||||
|
||||
/// US layout key codes and what each key types.
|
||||
const KEYS: [(&str, u16, &str); 32] = [
|
||||
const KEYS: [(&str, u16, &str); 34] = [
|
||||
(",", 43, ","),
|
||||
("a", 0, "a"),
|
||||
("b", 11, "b"),
|
||||
@@ -32,8 +32,10 @@ const KEYS: [(&str, u16, &str); 32] = [
|
||||
("=", 24, "="),
|
||||
("minus", 27, "-"),
|
||||
("m", 46, "m"),
|
||||
("n", 45, "n"),
|
||||
("q", 12, "q"),
|
||||
("[", 33, "["),
|
||||
("]", 30, "]"),
|
||||
("space", 49, " "),
|
||||
("tab", 48, "\t"),
|
||||
("enter", 36, "\r"),
|
||||
|
||||
Reference in new issue
Block a user