wez / wezterm

A GPU-accelerated cross-platform terminal emulator and multiplexer written by @wez and implemented in Rust
https://wezfurlong.org/wezterm/
Other
18.05k stars 807 forks source link

CTRL-PageUp/PageDown not working on MacBook Pro w/ Sequoia #6373

Closed metal-gabe closed 2 weeks ago

metal-gabe commented 2 weeks ago

What Operating System(s) are you seeing this problem on?

macOS

Which Wayland compositor or X11 Window manager(s) are you using?

No response

WezTerm version

20241104-083404-51c794ac

Did you try the latest nightly build to see if the issue is better (or worse!) than your current version?

Yes, and I updated the version box above to show the version of the nightly that I tried

Describe the bug

Navigating to the next & previous tab using ctrl-pageup/pagedown (on a MacBook Pro running Sequoia) does not work.

NOTE: pageup/pagedown is triggered using the fn/globe key & up/down arrows on a MBP laptop

This keyboard shortcut to switch tabs works on Chrome. WezTerm, however, doesn't react to the shortcut.

When I press the shortcut, I can see the "Window" menu flashing as if the shortcut is happening, but WezTerm does not actually switch its tabs.

To Reproduce

Run WezTerm (nightly or latest release) on a MacBook Pro w/ Sequoia, open multiple tabs, press ctrl-pageup/pagedown and notice that tabs do not switch.

Configuration

"no config"

I do actually have a config setup where it doesn't work, but I also ran WezTerm using wezterm -n and the issue is present there as well (both release & nightly).

Expected Behavior

Pressing ctrl-pageup/pagedown on a laptop should switch to the appropriate relative tabs.

Logs

Debug Overlay
wezterm version: 20240203-110809-5046fc22 aarch64-apple-darwin
Window Environment: macOS 15.0 (24A335)
Lua Version: Lua 5.4
OpenGL: Apple M3 Max 4.1 Metal - 89.3
Enter lua statements or expressions and hit Enter.
Press ESC or CTRL-D to exit
21:52:48.660 INFO logging > lua: on `*****`, setting font sizes...
21:52:48.789 INFO logging > lua: on `*****`, setting font sizes...
21:52:48.925 ERROR wezterm_gui::termwindow::background > Failed to load background: getting metadata for : No such file or directory (os error 2)
21:52:48.925 ERROR wezterm_gui::termwindow::background > Failed to load background: getting metadata for : No such file or directory (os error 2)
21:52:48.926 ERROR wezterm_gui::termwindow::background > Failed to load background: getting metadata for : No such file or directory (os error 2)
21:52:48.926 ERROR wezterm_gui::termwindow::background > Failed to load background: getting metadata for : No such file or directory (os error 2)
21:57:08.850 INFO logging > lua: on `*****`, setting font sizes...

Anything else?

Things to note:

local ActivateTabNext = {
   key = "PageDown",
   mods = "CTRL",
   action = act.ActivateTabRelative(1),
}

local ActivateTabPrev = {
   key = "PageUp",
   mods = "CTRL",
   action = act.ActivateTabRelative(-1),
}
metal-gabe commented 2 weeks ago

welp, it seems I've stumbled upon the possible reason why this doesn't work, fn/globe & ctrl-up/down arrows seem to be the new tiling manager in Sequoia

not sure why it works in Chrome, maybe Google did extra work to hijack that keyboard shortcut themselves, but it seems I'll have to adjust my habits away from ctrl-pageup/pagedown to shift-cmd-[/] for switching tabs

I'll close this ticket but if you feel like going against the Apple grain, I wouldn't say no to having my habits restored 😁

ty for the hard work on Wezterm! I was using Warp before and this terminal is a much nicer experience!