Key callbacks #7418
Key callbacks
#7418
|
The key callback functions for the old-style visualization classes (e.g. VisualizerWithKeyCallback) receive a key ID, a type (UP/DOWN), and a modifier bitmap. But key callbacks for the newer visualization.gui window/widget classes receive only a KeyEvent. And (contrary to what Google's AI thinks) that class has no 'modifiers' property, only raw key codes: shift/ctrl/alt are just passed in like any other key. Am I missing something? Do I really need to keep track of the up/down status of modifier keys myself?!? |
Answered by
lee-deraud
Feb 7, 2026
Replies: 1 comment
|
It appears the answer to my question is "yes": I really DO need to keep track of the shift/alt/ctrl states myself. |
0 replies
Answer selected by
lee-deraud
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It appears the answer to my question is "yes": I really DO need to keep track of the shift/alt/ctrl states myself.