Bo Peng wrote:
Edwin,
There is a modifierkeys member in your function, that is added to
keyQt for the first keysymbol. If I understand this correctly, this
disallows KeySequences like Alt-I Ctrl-B. Right?
yeah. this is code that comes from the kde widget, so the logic is
kde's. the reason for disallowing sequences like Alt-I Ctrl-B is (i
think) that they are considered to be two shortcut sequences: it is
difficult to compose Alt-I Ctrl-B without releasing the first modifier
(Alt), you would therefore not have a single sequence anymore in the
sense that before entering Ctrl-B you will have released all keys on the
keyboard.
does this makes sense?
I also do not understand the KeyReleased event where this modifierkeys
is again modified.
if you release a modifier while you haven't finished the sequence it
needs to be removed?