However, as I see there were some people who sent me precise responses, I would like to finish this issue.Â
For now I have used both display.addFilter, event codes and and key codes, with partial success. I can now intercept more keys, but still not all.
To be precise, I'm using List component, under gtk. When user types some alphabetic keys, a small window showing typed keys appears, it is used to filter list items. If I understand correctly how swt is working, then it is native gtk functionality. Those alphabetic keys are not passed to swt at all. I don't get any events in listener added by Display.addFilter, both keyup and keydown.Â
Is it possible, that not all keys are being passed to SWT from GTK widget?
Thanks,
MattÂ
W dniu 14 paÅdziernika 2009 23:38 uÅytkownik Silenio Quarti
<Silenio_Quarti@xxxxxxxxxx> napisaÅ:
Key events have two fields: character
and keyCode. The keyCode might be what you are looking for. It is 'j' when
you press 'Ctrl+j'.
Silenio
Hi,
I'm trying to use swt for developing a simple file manager.
The problem I'm facing is related to key handling. Currently I'm on Linux,
using gtk swt version. If I try to act on some key events I get filtered
and translated key bindings. For example: ctrl+j is translated to Enter
key.
Is there some way to get the "raw" keys?
Thanks,
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev