-
Notifications
You must be signed in to change notification settings - Fork 578
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
Keyboard shortcut fixes #1941
Keyboard shortcut fixes #1941
Conversation
Can you also verify this issue #1942 |
Yes, this PR also fixed #1942 |
guake/data/org.guake.gschema.xml
Outdated
@@ -559,7 +559,7 @@ | |||
<description>Switch to the last tab.</description> | |||
</key> | |||
<key name="split-tab-vertical" type="s"> | |||
<default>'<Super>less'</default> | |||
<default>'<Super>comma'</default> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is there a conflict on this so changing this default binding?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I discovered during testing that the previous keybinding doesn't work in the new code because the key combination generates the event with a comma instead of the less than sign. Potentially might have been super+shift+comma before, but split tab horizontal doesn't need the shift key so I went with cutting the shift key for symmetry.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems legit for me, super + <
is super + shift + ,
because shift + , = <
on the keyboard.
As we can test it with binding shortcut as <
will need to input with shift + comma
.
I would like to not change this, too.
I do want to know why this PR also fixed #1942 |
Fixes all lettered keyboard shortcuts without the shift key, as it turns out the only keyboard shortcut I used that didn't have a shift in it was CTRL+tab, which was unaffected, so I just never noticed this issue. 1942 deals with keyboard shortcuts that only have CTRL in them, so they are also affected by this. |
oof, thank you for doing this - thought I was going crazy at first |
@mlouielu Do you have anything else that you want clarified? This resolves a fairly major issue, it'd be nice if this finished getting through the review process |
Is it works for not EN layout? |
If you have a non-us keyboard, are you able to confirm whether this patch works or not on a non-us keyboard? EDIT: From quick testing, event.get_scancode() returns 0 for all keys, so there may be additional arguments to this I need to read up on but I think this specifically isn't the way to go |
Maybe this is another issue but keybinds with layout sensitive keys (letters and other) doesn't work. For example copy keys (Ctrl+Shift+C)
For RU layout
|
Yeah, should probably be in its own issue, this fix doesn't need more reasons to get delayed. I'll note though that we're using the event keyval, not keycode, which do give different values on cursory testing. Can try see why get_scancode() only spits out 0s for me, in the meantime does rebinding the shortcuts at least work on the russian layout? |
Yes, I opened separate issue #1946.
Yes, I can rebind keys for russian layout and it works, but when I switch to english it will not work.
Do you try In Guake 3.7.0 keybindings works on both layouts, I think because there used |
There is a get_keycode(), can try it and make a branch for it in another pr. Also, @mlouielu, is there anything still holding this PR up? I'm fine if you have comments to add, but radio silence for two days on an issue that you marked as high priority doesn't help us get this fixed. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would like not to change the default binding. This may just be GTK preference of showing shift binding.
guake/data/org.guake.gschema.xml
Outdated
@@ -559,7 +559,7 @@ | |||
<description>Switch to the last tab.</description> | |||
</key> | |||
<key name="split-tab-vertical" type="s"> | |||
<default>'<Super>less'</default> | |||
<default>'<Super>comma'</default> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems legit for me, super + <
is super + shift + ,
because shift + , = <
on the keyboard.
As we can test it with binding shortcut as <
will need to input with shift + comma
.
I would like to not change this, too.
But yes, as @vantu5z point out, different keyboard layout give different result here I think we can put this in another issue or PR to discuss how to handle this. |
Fix keyboard shortcuts without the shift key, switch tab mappings and update split tab vertical keybind default to new keybinding code.
Alright, split shortcut changed to shift+comma. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
Late today, I'll write the release announcement in the morning |
Sorry to budge in here again, but this was amazing to me: I updated guake on Friday, it broke my shortcuts. I considered using a different drop-down terminal. Half-heartedly, I sat down to write a bug report. In a matter of hours @Davidy22 jumped in and explained and linked my issues to his PR and now, two days later, within a weekend, where everyone should really enjoy their free time at leisure, this is merged and might just become available in my updates now. In only 3 days! Forgive my excitement, this is the first time I witnessed Open Source being this awesome. @Davidy22, @mlouielu you guys rock! 🥳 |
@cmacht, same kind of experience here. Guake is an integral part of my daily workflow and it's very nice to see this issue resolved quickly. For anyone interested, the Arch Linux Package has been updated. My keyboard shortcuts are working perfectly again. Thanks to everyone who got this taken care of! 👍 |
Fix keyboard shortcuts without the shift key, switch tab mappings and update split tab vertical keybind default to new keybinding code.
Fixes #1939