Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
[platform-ui-dev] Re: Change in the ordering of key events from Eclipse 2.1.x to Eclipse 3.0

Please see #16 of Eclipse 3.0 Porting Guide:

"16. Key down events

In 3.0, SWT reports key down events before the work is done in the OS. This is 
much earlier than it was prior to 3.0. This change was made to support key 
bindings in Eclipse which necessitates intercepting key events before any 
widget had a chance to process the character. Consequences of this change are 
visible to code that handles low-level org.eclipse.swt.SWT.KeyDown events 
directly. For example, it means that when a listener on a Text widget 
receives a key down event, the widget's content (getText()) will not yet 
include the key just typed (it would have prior to 3.0). The recommended way 
to get the full text from the widget including the current key is to handle 
the higher-level SWT.Modify or SWT.Verify events rather than the low-level 
SWT.KeyDown event; code that does it this way is unaffected by this change."



cheers,
d.


Back to the top