ManfredHerr Messages: 67 Registered: February 2013 Location: Germany
Member
My findings with KEY_UP are that it is NOT platform independent at all. First of all, it depends which key is pressed. The arrow keys are generating press and release events for you. But if you wait for key release events for aplha keys, e.g. 'a', then you wait forever in X11. But if you use GTK then a key release event comes up: KEY_UP + 'A'. This means that the key symbols for press and release differ. I tried it with a "keyhook" in order to be at a lower level. No change.
The keyhooks are called in Ctrl::DispatchKey. But this obscure selection of keys, having a release event or not, already takes place in the platform dependent event processing.
I miss a hook to monitor every key on the keyboard with press and release.