|canceling key event [message #756829]
||Tue, 15 November 2011 04:59
| Maxime Jeanmart
Registered: November 2010
Does anyone know how to stop a key pressed from being added to the text of a text field?
I'm trying to implement some kind of content assist in an SWT dialog. I'm catching the key sequence as configured in eclipse preferences and trigger the content assist. I tried this using a KeyListener or a Listener.
It works but if the configured key trigger is something like CTRL-SPACE, then a space is also added to my text field, which is not what I want. So I'd like to know a way to stop the key pressed from being added to the text field.
Thanks for any help,
Powered by FUDForum
. Page generated in 0.01702 seconds