Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] avoiding keys translation, getting raw platform key events

Ok, sorry for spamming the list, if this is not the right place for posting this kind of questions. I tried to google for some kind of SWT user forum, but I didn't found it. I will not post to this list anymore.

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


From:
Mateusz Fiołka <mateusz.fiolka@xxxxxxxxx>
To:
Date: 10/13/2009 04:44 PM
Subject: [platform-swt-dev] avoiding keys translation,        getting raw platform key events
Sent by: platform-swt-dev-bounces@xxxxxxxxxxx





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,
Matt_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev



Back to the top