Capture Alt+Shift keypress...
-
I wonder if there is a way to capture the Alt+Shift (no additional key) key combination...
From a simple test I found that Alt alone and Shift alone does create an event, but the combination of the two does nothing... -
@mpergand
It never gets to the keyPressEvent for that combination...
It does for Alt alone and Shift alone, but never hits the event handler for the combination, unless I add a 3rd key (like a letter)@kepeter
It seems very relevant to me for this question to state which platform/OS you are on?
Maybe the OS/desktop manager might treat Alt+Shift* alone specially?Under Windows 11 it brings up the desktop's "Input Language Change?" popup window to say do you really want to change your keyboard language. Could this be relevant to you? Don't know whether you use Windows., which is why it helps to say.
-
@kepeter
It seems very relevant to me for this question to state which platform/OS you are on?
Maybe the OS/desktop manager might treat Alt+Shift* alone specially?Under Windows 11 it brings up the desktop's "Input Language Change?" popup window to say do you really want to change your keyboard language. Could this be relevant to you? Don't know whether you use Windows., which is why it helps to say.