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

I think event.keyCode is what you want. 
A better options is to use accelerators, see MenuItem#setAccelerator(int) 

In the future, please use the newgroups for user questions,
Thank you,





From:
Carolyn MacLeod/Ottawa/IBM@IBMCA
To:
"Eclipse Platform SWT component developers list." 
<platform-swt-dev@xxxxxxxxxxx>
Date:
14/10/2009 10:01 AM
Subject:
Re: [platform-swt-dev] avoiding keys translation,       getting raw 
platform key events
Sent by:
platform-swt-dev-bounces@xxxxxxxxxxx




Did you try adding an event filter (i.e. Display.addFilter) ? 

Also, not sure if this is useful, but the source code for the example 
fileexplorer in Steve & Mike's SWT book is here: 
http://www.informit.com/store/product.aspx?isbn=0321256638 

Carolyn 



From: 
Mateusz Fiołka <mateusz.fiolka@xxxxxxxxx> 
To: 
platform-swt-dev@xxxxxxxxxxx 
Date: 
13/10/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