-
-
Notifications
You must be signed in to change notification settings - Fork 961
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to get control over control+shift+plus keychord? #1224
Comments
I can second that I am not able to use the plus key. |
If your minus and plus keys are shifted versions of each other in your keyboard layout, then you need to set one as ctrl++ and the other as ctrl+shift+- |
There is something weird going on. Pressing '+' and '-' on my keyboard correctly is reported in kitty as '+' and '-'. Pressing shift++ correctly is reported as '?' which is the shifted key on my keyboard. Also, pressing shift+- is correctly reported as '_` which is the shifted key on my keyboard. However, pressing control+shift++ I get: When I press control-shift-- I get: As it should. So, in my understanding, they are not shifted. control-shift-+ somehow just inserts control-shift-- for some reason. Any ideas? |
this is because glfw has no plus key. See http://www.glfw.org/docs/latest/group__keys.html so it is not possible to handle a shortcut such as ctrl+shift++ in glfw. I'm afraid you are out of luck there. EDIT: accidentally wrote question instead of plus originally, now corrected. |
sorry mis-spoke should have said plus not question |
Thank you for all your responses. What I don't get is that when pressing '+', it is echoed back in kitty, so looks like it handles '+' somehow. Though, trying |
Sadly, in your particular case, the native key mapping wont work, this If you really want to fix this, the way to do it is to add a plus key to |
I try to change the keybinding for increase font size to control+shift++
I have tried:
map control+shift++ change_font_size all +2.0
map control+shift+plus change_font_size all +2.0
map control+shift+0x2b change_font_size all +2.0
But all fail.
From --debug-keyboard:
Press scancode: 0x14 clean_sym: plus composed_sym: question mods: ctrl+shift glfw_fallback_key: 45 (MINUS) xkb_key: 45 (minus)
Keypress matched action: change_font_size
It seems that kitty inserts automatically glif_fallback_key: 45 (minus) and then the default key-chord
map kitty_mod+minus change_font_size all -2.0
kicks in, decreasing the font size instead of increasing it.
If I instead use
map control+shift+0 change_font_size all +2.0
it works.
How can I make kitty use control+shift+plus to increase the font size?
The text was updated successfully, but these errors were encountered: