Cathc low level key events (like accent keys), possible in Eclipse? [message #329003] |
Tue, 10 June 2008 12:46 |
Thony Lundin Messages: 1 Registered: July 2009 |
Junior Member |
|
|
Hi,
if there is a need to catch key events (like when pressing accent keys) for
first press, is this possible in Eclipse platform?
Imagine I want to implement a "virtual" keyboard as an Eclipse view. I want
to be able to map the virtual keyboard keys to any character I like. So when
pressing a key on physical keyboard this keypress is catched by virtual
keyboard and the character mapped to the key in the virtual keyboard is then
inserted to some textbox for instance. Problem I have is that keyboard
layout (english, german, swedish, etc) gives different keycodes for same
keys. Also in English layout there is two keys with same keycode so I cannot
distinguish them and in swedish layout and german layout there are some
accent keys where I can only catch key event after second keypress ^ + e.
They key listenter and keycodes are logical for character input point of
view but not for my purpose.
So there is a need to really catch each keypress. Is there any other way
than having to listen to OS events as it is done in Display.java?
|
|
|
Powered by
FUDForum. Page generated in 0.03062 seconds