mirror of
https://github.com/wez/wezterm.git
synced 2024-12-24 22:01:47 +03:00
macos: fixup IME generated enter and backspace sequences
Rather than \n and bs these need to be \r and del respectively otherwise we can end up triggering the wrong ctrl based key mappings in a remote tmux session.
This commit is contained in:
parent
03f51f7be2
commit
8c26b77057
@ -618,9 +618,9 @@ impl WindowView {
|
||||
extern "C" fn do_command_by_selector(this: &mut Object, _sel: Sel, a_selector: Sel) {
|
||||
let selector = format!("{:?}", a_selector);
|
||||
let key = match selector.as_ref() {
|
||||
"deleteBackward:" => KeyCode::Char('\x08'),
|
||||
"deleteBackward:" => KeyCode::Char('\x7f'),
|
||||
"cancelOperation:" => KeyCode::Char('\x1b'),
|
||||
"insertNewline:" => KeyCode::Char('\n'),
|
||||
"insertNewline:" => KeyCode::Char('\r'),
|
||||
"insertTab:" => KeyCode::Char('\t'),
|
||||
"moveLeft:" => KeyCode::LeftArrow,
|
||||
"moveRight:" => KeyCode::RightArrow,
|
||||
|
Loading…
Reference in New Issue
Block a user