Key event without focus [message #440477] |
Mon, 02 August 2004 12:32  |
Eclipse User |
|
|
|
Originally posted by: ryusasai.hotmail.com
Hi,
Could you tell me how to get F1 key event which is
nothing to do with any control's focuses?
For example, suppose there's a button saying "F1 exit",
and the focus is on some other button.
In such case, if user push F1, program should exits.
That's what I want to do.
Thank you.
|
|
|
|
Re: Key event without focus [message #440652 is a reply to message #440477] |
Thu, 05 August 2004 04:11  |
Eclipse User |
|
|
|
Hi Emma,
I think the Display.addFilter() method is what you're looking for.
Ryan
Emma wrote:
> Hi,
> Could you tell me how to get F1 key event which is
> nothing to do with any control's focuses?
> For example, suppose there's a button saying "F1 exit",
> and the focus is on some other button.
> In such case, if user push F1, program should exits.
> That's what I want to do.
> Thank you.
|
|
|
Powered by
FUDForum. Page generated in 0.32227 seconds