1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-23 06:54:45 +03:00

macos: use shift-tab hack with ctrl-shift-tab as well

refs: #1902
This commit is contained in:
Wez Furlong 2022-06-15 22:21:35 -07:00
parent 84c429f8ec
commit adf9679461
2 changed files with 2 additions and 1 deletions

View File

@ -85,6 +85,7 @@ As features stabilize some brief notes about them will accumulate here.
* X11/Wayland: wezterm.desktop now specifies `StartupWMClass`. Thanks to [@uncomfyhalomacro](https://github.com/uncomfyhalomacro)! [#2052](https://github.com/wez/wezterm/issues/2052) [#2125](https://github.com/wez/wezterm/pull/2125)
* `sudo -i` in a pane would cause subsequent pane/tab creation to fail until the cwd was changed to an accessible directory [#2120](https://github.com/wez/wezterm/issues/2120)
* X11: Add [x11_focus_change_repaint_delay_ms](config/lua/config/x11_focus_change_repaint_delay_ms.md) option to workaround NVIDIA specific window resize quirks. Thanks to [@pjones123](https://github.com/pjones123)! [#2063](https://github.com/wez/wezterm/issues/2063) [#2111](https://github.com/wez/wezterm/pull/2111)
* macOS: `SHIFT-Tab` and `CTRL-SHIFT-Tab` produced incorrect results [#1902](https://github.com/wez/wezterm/issues/1902)
### 20220408-101518-b908e2dd

View File

@ -2054,7 +2054,7 @@ impl WindowView {
// Shift-Tab on macOS produces \x19 for some reason.
// Rewrite it to something we understand.
// <https://github.com/wez/wezterm/issues/1902>
let chars = if virtual_key == kVK_Tab && modifiers == Modifiers::SHIFT {
let chars = if virtual_key == kVK_Tab && modifiers.contains(Modifiers::SHIFT) {
"\t"
} else {
chars