Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Eclipse Scout » ESC Keyboard Key not working if no field is selected
ESC Keyboard Key not working if no field is selected [message #1391847] Tue, 01 July 2014 13:54 Go to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
We have a single form application (SWT UI, Eclipse RT 3.8, Eclipse Scout 4.0.0) with the workaround described in Bug 433010 to open new Form (represented inside of a SWT view) in foreground.


We have a Problem with the ESC Keyboard Key:
The expectation is that this key closes the view.

This works well if one of the Fields of the Form has the focus.
We are looking for a solution, at initial state, when no field has the focus.

index.php/fa/18428/0/

Thank you in advance.
Re: ESC Keyboard Key not working if no field is selected [message #1391894 is a reply to message #1391847] Tue, 01 July 2014 15:11 Go to previous messageGo to next message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
To have the ESC key working, you just need to click somewhere in the form (in a field or somewhere else). A click in the View Tab-Header (even if it is already the selected tab) is also working.

=> After this click the keyPressed Event will come. It is possible to close the Form with escape.
Re: ESC Keyboard Key not working if no field is selected [message #1392526 is a reply to message #1391894] Wed, 02 July 2014 13:15 Go to previous message
Jeremie Bresson is currently offline Jeremie BressonFriend
Messages: 1252
Registered: October 2011
Senior Member
I am moving forward on this topic.

The workaround we use (described in Bug 433010 comment #5) might be a problem for this use-case.

An other approach is remove the proposed workaround from the code, and to call activate() on the form:

AaaaForm form = new AaaaForm();
form.startNew();
form.activate();
form.getAField().requestFocus(); //only if necessary, otherwise remove this line


A more detailed explanation can be found in Bug 433010 comment #6.


.
Previous Topic:Migration to Luna
Next Topic:Gradle build for Scout projects
Goto Forum:
  


Current Time: Fri Apr 26 20:55:28 GMT 2024

Powered by FUDForum. Page generated in 0.03211 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top