Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » IRunnableWithProgress does not correctly reset the focus
IRunnableWithProgress does not correctly reset the focus [message #760114] Thu, 01 December 2011 11:05 Go to next message
Steffen Kay is currently offline Steffen KayFriend
Messages: 14
Registered: September 2009
Junior Member
Hello,

RAP-Version:
1.4SR1

Perequisites:
- use IRunnableWithProgress in an ApplicationWindow
- a progress will be executed by a SelectionListener of a "Text"-control

See my example to reproduce.


Description for my example:
Type in some text in the "Text"-control and press enter key. Now the progress will be started and will end after 2.5 seconds.

According to the java-source now the following should happen:

// It's necessary to restore focus after reenabling the controls
// because disabling them causes focus to jump elsewhere.
// Use forceFocus rather than setFocus to avoid SWT's
// search for children which can take focus, so focus
// ends up back on the actual control that previously had it.
currentFocus.forceFocus();



For Firefox and Internet Explorer i have found different behaviors after pressing enter key which will be described in the following:

Firefox 8.0:
The cursor is visible and it is possible to edit the text of the Text-control by keyboard.
If you try to use the mouse cursor to mark some text you can see that this is not possible. Only in the case that you explicit reset the focus by clicking elsewhere and then back to the text-control you are able to mark some text.
Next thing which is curious is the fact that you have to press enter key two times to start the progress a second time.


Internet Explorer 8:
The cursor is not visible but you are able to press enter one time to restart the progress again. However, editing text is NOT possible.
Re: IRunnableWithProgress does not correctly reset the focus [message #760299 is a reply to message #760114] Thu, 01 December 2011 19:42 Go to previous messageGo to next message
Rüdiger Herrmann is currently offline Rüdiger HerrmannFriend
Messages: 335
Registered: July 2009
Senior Member
Steffen,

from reading your post, this looks like browser quirks. Did you try and
see how Chrome/Safari behave?
In any case, would you mind to file a bugzilla [1]? With a bug report it
is easier to track this issue.

Regards,
Rüdiger

[1] http://www.eclipse.org/rap/support/#new-bugs

On 01.12.2011 12:05, Steffen wrote:
> Hello,
>
> RAP-Version:
> 1.4SR1
>
> Perequisites:
> - use IRunnableWithProgress in an ApplicationWindow
> - a progress will be executed by a SelectionListener of a "Text"-control
>
> See my example to reproduce.
>
>
> Description for my example:
> Type in some text in the "Text"-control and press enter key. Now the progress will be started and will end after 2.5 seconds.
>
> According to the java-source now the following should happen:
>
> // It's necessary to restore focus after reenabling the controls
> // because disabling them causes focus to jump elsewhere.
> // Use forceFocus rather than setFocus to avoid SWT's
> // search for children which can take focus, so focus
> // ends up back on the actual control that previously had it.
> currentFocus.forceFocus();
>
>
> For Firefox and Internet Explorer i have found different behaviors after pressing enter key which will be described in the following:
>
> Firefox 8.0:
> The cursor is visible and it is possible to edit the text of the Text-control by keyboard.
> If you try to use the mouse cursor to mark some text you can see that this is not possible. Only in the case that you explicit reset the focus by clicking elsewhere and then back to the text-control you are able to mark some text.
> Next thing which is curious is the fact that you have to press enter key two times to start the progress a second time.
>
>
> Internet Explorer 8:
> The cursor is not visible but you are able to press enter one time to restart the progress again. However, editing text is NOT possible.
>


--
Rüdiger Herrmann
http://codeaffine.com
Re: IRunnableWithProgress does not correctly reset the focus [message #761260 is a reply to message #760299] Tue, 06 December 2011 07:49 Go to previous message
Steffen Kay is currently offline Steffen KayFriend
Messages: 14
Registered: September 2009
Junior Member
Bug:
https://bugs.eclipse.org/bugs/show_bug.cgi?id=365396
Previous Topic:How to manage Ctrl+Space for autocomple text assist with RAP with ContentProposalAdapter
Next Topic:Control setParent method
Goto Forum:
  


Current Time: Fri Apr 26 13:59:20 GMT 2024

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

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

Back to the top