Using a browser widget inside a Wizard [message #647266] |
Wed, 05 January 2011 08:28  |
Eclipse User |
|
|
|
Hi
First a little introduction: I have a wizard and one of its pages contains a SWT Browser widget. The browser loads a web page which contains a HTML form. This form contains a input field of type textarea.
Now the actual problem: when the user is typing text in this textarea and wants a new line he presses Enter-key, but then the default button of the wizard dialog is invoked (instead of inserting a new line inside the textarea).
To avoid this behavior I set the default button to null, which gives me the desired result: the default button is not invoked and a new line is inserted in the textarea.
Is this the intended behavior for the browser widget?
I also tried adding a KeyListener to the browser widget to see if it was possible to intercept the different key strokes, but none of the methods (keyPressed and keyReleased) are invoked when you press a key when the browser has the focus.
Kind regards,
Roel
|
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.13578 seconds