1
1
mirror of https://github.com/wez/wezterm.git synced 2024-12-25 22:33:52 +03:00

add a couple of missing IME operations -> KeyCode

This commit is contained in:
Wez Furlong 2019-11-03 11:49:50 -08:00
parent 819faa3f85
commit ea25055d42

View File

@ -604,7 +604,9 @@ impl WindowView {
eprintln!("do_command_by_selector: {:?}", selector); eprintln!("do_command_by_selector: {:?}", selector);
let key = match selector.as_ref() { let key = match selector.as_ref() {
"deleteBackward:" => KeyCode::Char('\x08'), "deleteBackward:" => KeyCode::Char('\x08'),
"cancelOperation:" => KeyCode::Char('\x1b'),
"insertNewline:" => KeyCode::Char('\n'), "insertNewline:" => KeyCode::Char('\n'),
"insertTab:" => KeyCode::Char('\t'),
"moveLeft:" => KeyCode::LeftArrow, "moveLeft:" => KeyCode::LeftArrow,
"moveRight:" => KeyCode::RightArrow, "moveRight:" => KeyCode::RightArrow,
"moveUp:" => KeyCode::UpArrow, "moveUp:" => KeyCode::UpArrow,