A
Aaron Fude
Hi,
The modifiers of the mouse-clicked event object tell me weather alt or shift
or ctrl key is down. What's the best way to detect whether some other key
(such as "Space" or "a") is down? The idea is to simulate the photoshop
feature that when alt and space are both pressed the active tool switches to
zoom.
I have a solution in mind where the overall frame captures the clicks and
stores it in some kind of global object, etc. But that seems overly
complicated for this simple task. Besides, I can't always control the JFrame
that my component will end up in.
Very many thanks in advance!
Aaron Fude
The modifiers of the mouse-clicked event object tell me weather alt or shift
or ctrl key is down. What's the best way to detect whether some other key
(such as "Space" or "a") is down? The idea is to simulate the photoshop
feature that when alt and space are both pressed the active tool switches to
zoom.
I have a solution in mind where the overall frame captures the clicks and
stores it in some kind of global object, etc. But that seems overly
complicated for this simple task. Besides, I can't always control the JFrame
that my component will end up in.
Very many thanks in advance!
Aaron Fude