Closed stiang closed 3 weeks ago
Works for me with:
kitty --config=NONE -o 'map cmd+< next_tab'
It doesnt show up in the debug output becomes it becomes a "global shortcut" on macOS. macOS has a crazy system for dealing with keyboard shortcuts. You can see it by accessing the Window menu in the global menubar it will be listed next to the "Show Next tab" menu entry. Most likely this is a keyboard issue. Try pressing shift with it. Because this shortcut is "global" it's handled by macOS not kitty, so all the usual kitty facilities wont work like debugging mapping by key id etc.
Looks like you are right. I thought cmd+;
was a built-in shortcut for next_tab
, but it’s not - it’s what cmd+<
gets "translated" to. And it fits - the '<' key is to the right of 'M' on a US keyboard, but on a Norwegian keyboard, that’s where ';' is.
I tried tricking it into using the key on a US keyboard that’s to the right of the left Shift, which looks like it is the \
key, but it didn’t work.
Guess I’ll just have to figure out a different shortcut for next_tab, which is a bummer, because it’s probably my most-used shortcut.
This did work with my previous version of kitty, though, which I think was 0.33.x.
Thanks for looking into it.
Yeah that's because the Next tab item was added to the global menubar to match other terminals on macOS.
Describe the bug After upgrading to 0.36.2 the keyboard mapping
map cmd+< next_tab
does not work anymore (nothing happens).Using the build-in keyboard mapping for the same operation (
cmd+;
) works as expected.I also tried using
map cmd+0x3c next_tab
, which is whatkitty --debug-keyboard
tells me is the hex code for that key, but that didn’t work either.To isolate the problem I have removed everything from my config except this keyboard mapping, and the mapping still doesn’t work.
As the debug output below shows, the mapping isn’t defined at all.
To Reproduce Steps to reproduce the behavior:
map cmd+< next_tab
on a Maccmd+<
does nothingEnvironment details Note that I’m using a Norwegian keyboard, where the
<
key is located immediately to the right of the left Shift key. But I guess this is not related to international keyboards, seeing as how the keyboard mapping isn’t defined at all.Debug output: