unable to define shortcut for Shift+[Left,Right,Up,Down,Space,Return]
I'm on arch linux mate 2.1-dev 2026e09.
Interestingly I am able to define shortcut for Ctrl+ or for Alt+, but strangely not for Shift+[Left,Right,Up,Down,Space,Return]. I sometimes run out of keys to assign shortcuts, so it would be nice to use shift. I wonder if this is an arch/linux/mate specific issue with Qt. I should note that when I assign shortcuts like Shift+1, the shortcut appears as "!", while assigning shorcuts like Shift+S, shortcut appears as "Shift+S", which seems a little inconsistent.
Comments
Regarding the latter point: I would imagine the idea is to show what can be actually shown on the key caps. A physical "!" appears above the "1" on my keyboard, so it seems logical to show the shortcut this way. But the "S" key does not show both an "s" and an "S" - just the "S". So showing Shift+S is the only literally correct way to show the distinction. Pretty sure this is common in other programs as well - show shortcuts involving letters as caps because most keyboards display them this way, then use Shift to indicate when it is used with letters, but use the actual symbols for keys that show multiples.
Not sure about the first, but I seem to recall Qt does some intercepting / processing of this stuff before we get hold of it.
Antwort auf Regarding the latter point: I von Marc Sabatella
that does make sense regarding how they display now that you give that explanation.
I wouldn't be suprised if Qt is doing some intercepting / processing. I wonder now if there is a way to disable that for these key combinations. It could be that Shift always converts the key into the character representing it's shifted component, such that Shift+s is transmitted as "S" and Shift+1 is transmitted as "!", but then since there is no corresponding characters for Shift+[Left,Right,Up,Down,Space,Return], then that might mean why that key combination is not detected.
Antwort auf Regarding the latter point: I von Marc Sabatella
In regards to ctrl-! or just !, this distinguishes it from the shift 1 on the numeric keypad which is recognized as a separate keystroke and is reported as shift-KeyPad1.
Antwort auf In regards to ctrl-! or just von mike320
aha, this makes sense. Actually I've tried out holding shift and pressing numpad 1, and I get "NumPad+End", which makes sense because that key is labeled as 1 and End.
Antwort auf aha, this makes sense. von ericfontainejazz
I didn't look, I just knew the keypad was different and forgot about the other functions of the number pad because I always use caps lock. It does distinguish between + and key pad + for example.
OS: OpenSuse Leap
Just tested the same with the application Scribus, there it's able to define for example a shortcut Shift+Right. So I don't believe it's a Linux or Qt issue.
Antwort auf OS: OpenSuse Leap Just tested von kuwitt
Thanks for cross referencing. BTW, what Qt version are you on. From https://en.opensuse.org/SDB:KDE_repositories#Qt I can't tell what is the default Qt version.
For reference, My arch linux is on Qt 5.8.0 from arch repo.
Antwort auf Thanks for cross referencing. von ericfontainejazz
"qmake -v" replies 4.8.6 ;-)
note: and by the way, when I press in Scribus the shortcut shift+1 there appears in the list "Shift+!".
Antwort auf "qmake -v" replies 4.8.6 von kuwitt
What "qmake -v" didn't replied:
Beside Qt 4.8.6 there is also installed QT 5.6.1 on my system.
(I came across this concerning another MuseScore request)