|Re: Missing focusLost when keyboard-triggering default button [message #987634 is a reply to message #987400]
||Tue, 27 November 2012 11:35
| Thomas Schindl
Registered: July 2009
Just to make sure.|
Have you tested this behavior on all SWT platforms? On Mac normally a
button can never receive focus so if you rely on this your application
it is broken on Mac OS-X as well!
In the RAP case the behavior you see might be a bug, on OS-X it is
desired, bottom line do not use focus-out, or explicitly sync your model
from the UI before you execute actions attached to the SWT buttons.
Am 26.11.12 14:36, schrieb Marco Missfeldt:
> I have a view with some controls and a default button, set by
> In SWT, when I press ENTER to trigger the default button, the focus
> changes to the default button before it is triggered. In RWT the focus
> doesn't change.
> This only affects keyboard triggering. When I use the mouse to trigger
> the default button, the focus change occurs.
> This is a big issue for us because we use the focus lost events on text
> controls to perceive content changes as a whole (and not on every single
> key press).
> So the effect in RWT for example is when I enter a password and directly
> hit ENTER to trigger the Login-Button, the password input is not
> recognized because of the missing focus change. When I use the mouse
> instead everything is fine.
> I wonder if nobody else has problems with this or am I missing an
> important point?
Powered by FUDForum
. Page generated in 0.02053 seconds