diff --git a/docs/changelog.md b/docs/changelog.md index cc24dd98f..6238f11d1 100644 --- a/docs/changelog.md +++ b/docs/changelog.md @@ -67,6 +67,8 @@ As features stabilize some brief notes about them will accumulate here. * `tab:panes()` and `tab:panes_with_info()` now return the full list of panes in the tab regardless of whether a pane was zoomed. Previously, if a pane was zoomed, only that pane would be returned by those methods. +* macOS: CTRL-modified keys are now routed to the IME + [#2435](https://github.com/wez/wezterm/pull/2435) #### Updated * Bundled Nerd Font Symbols font to v2.2.2 diff --git a/window/src/os/macos/window.rs b/window/src/os/macos/window.rs index acca0d1c2..f273df169 100644 --- a/window/src/os/macos/window.rs +++ b/window/src/os/macos/window.rs @@ -1597,6 +1597,8 @@ impl WindowView { | "moveUpAndModifySelection:" | "moveDown:" | "moveDownAndModifySelection:" + | "moveToBeginningOfParagraph:" + | "moveToEndOfParagraph:" | "insertTab:" | "insertBacktab:" | "insertNewline:" @@ -2226,21 +2228,18 @@ impl WindowView { }; let alt_mods = Modifiers::LEFT_ALT | Modifiers::RIGHT_ALT | Modifiers::ALT; - let only_alt = (modifiers & alt_mods) == Modifiers::ALT; let only_left_alt = (modifiers & alt_mods) == (Modifiers::LEFT_ALT | Modifiers::ALT); let only_right_alt = (modifiers & alt_mods) == (Modifiers::RIGHT_ALT | Modifiers::ALT); // Also respect `send_composed_key_when_(left|right)_alt_is_pressed` configs // when `use_ime` is true. let forward_to_ime = { - if modifiers.is_empty() || modifiers == Modifiers::SHIFT { - true - } else if only_left_alt && !send_composed_key_when_left_alt_is_pressed { + if only_left_alt && !send_composed_key_when_left_alt_is_pressed { false } else if only_right_alt && !send_composed_key_when_right_alt_is_pressed { false } else { - only_alt + true } };