Closed p00f closed 2 years ago
This happens even after installing xwayland and setting linux_display_server x11
Run kitty --debug-input presumably the algorithm for modifier detection on wayland is failing on your machine. It's @orki code so hopefully he can help.
kitty --debug-input
:
small letter L, backspace, tab, esc, ctrl-tab,ctrl-shift-tab,shift-tab: https://paste.rs/6Fa
presumably the algorithm for modifier detection on wayland is failing on your machine
it happens after installing xwayland and setting linux_display_server x11
too btw
Looks OK to me. According to that your numlock key is actually pressed. If it's just ctrl+tab you care about simply override it in kitty.conf using send_text, see the kitty FAQ.
I don't even have a numlock key. Also, show_key
sees ctrl and ctrl-tab as the same
libxkbcommon thinks you do. And I cannot replicate your issue with ctrl+tab. Indeed given that ctrl+tab is a shortcut mapped to next_tab by default, I dont even understand how you are getting it in showkey without map ctrl+tab no-op which your debug output says you dont have. Not to mention your --debug-input output is missing any on_key_input lines indicating it isnt even from kitty version 0.24.2 which is the version your debug output says you are running. So Ihave no clue what is going on in your system, but youhave bigger issues than ctrl+tab not working. Multiple kitty installs would be my guess.
Oh sorry I redirected stdout to a file, I didn't know that would be incomplete. Here's the full output copy-pasted from the terminal:
The default keybinding works - ctrl-tab changes the tab when a tab is open when it is not mapped to no-op. But it doesn't send ctrl-tab to neovim when it is mapped to no-op either
I don't have multiple kitty installs either, just the one from https://archlinux.org/packages/community/x86_64/kitty/
youhave bigger issues than ctrl+tab not working
oof
You will need to solve the numlock issue for that. Or like I said before, just map ctrl+tab using send_text in kitty.conf.
Oh and another thing you can try is setting the env var KITTY_WAYLAND_DETECT_MODIFIERS=1
Yes but using send_text requires me to find out what bytes to send to look like ctrl-tab. The documentation says to look at the output of show_key which doesn't show ctrl-tab
KITTY_WAYLAND_DETECT_MODIFIERS=1 doesn't fix it
nvm, thanks for looking into this 👍🏽 . This is not super important to me
The bytes are
\x1b[9;5u
Thanks
Describe the bug
kitty +kitten show_key -m kitty
shows the wrong keys - any keypress is prefixed with a NumLock even though I don't I have a NumLock key on my keyboard.Pressing and releasing h shows:
Pressing and releasing ctrl shows:
Pressing and releasing shift shows:
Pressing and releasing ctrl-tab shows:
This causes
<C-Tab>
to not work in neovim. Specifically,gives the desired behaviour in foot (which implements kitty's keyboard protocol) i.e. all 3 key combinations echo distinct messages, but in kitty only
<Tab>
worksEnvironment details
sway 1.7 on wlroots 0.15.1
Additional context This can be reproduced with kitty --config NONE