[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
|
[news.eclipse.platform.swt] Re: Doing some action upon key press
|
I believe this snippet does exactly what you want:
http://dev.eclipse.org/viewcvs/index.cgi/org.eclipse.swt.snippets/src/org/eclipse/swt/snippets/Snippet4.java?rev=HEAD&content-type=text/vnd.viewcvs-markup
"Jens Rossbach" <web001@xxxxxxxxxxxx> wrote in message
news:d77esm$1c2$1@xxxxxxxxxxxxxxxxxxx
> Hello,
>
> I have a dialog window (a progress window, which tracks a certain
operation)
> which should be closed when user presses ESC and the operation this dialog
> tracks should be canceled. How can I do this best? The closing of the
dialog is
> already automatically done when pressing ESC, but how can I listen to the
key
> press and cancel the operation? Adding a key listener to the shell does
not work.
>
>
> Jens