Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [platform-swt-dev] SWT Event for the Windows key

Thanks Markus' for clearing this! I guess i should not have answered because i know not enough about those platform details.

Tom 

Von meinem iPhone gesendet

Am 09.10.2014 um 19:47 schrieb Markus Keller <markus_keller@xxxxxxxxxx>:

Lars' question was about the Windows key, not about the Command key. Tom's first answer was just wrong (since nobody talked about a Mac context). This answer is also not helpful, since it's a mix of half-truths and -untruths that don't belong on a dev list.

Some facts:
The static initializer at the end of the SWT class tells how the mapping of modifier keys to MOD1-4 works.
The Mac has 4 modifier keys that can be used by applications, while Windows/Linux only have 3. On Windows/Linux, the Windows logo/Super key is reserved for the OS.
If you attach a Windows keyboard to a Mac, the Windows logo key is typically used as Command key.
The Command key on a Mac has a similar function as the Ctrl key on Windows/Linux. That's why those keys map to MOD1.

Markus




From:        Tom Schindl <tom.schindl@xxxxxxxxxxxxxxx>
To:        "Eclipse Platform SWT component developers list." <platform-swt-dev@xxxxxxxxxxx>
Date:        2014-10-09 18:47
Subject:        Re: [platform-swt-dev] SWT Event for the Windows key
Sent by:        platform-swt-dev-bounces@xxxxxxxxxxx




The windows key (apple key) OS X has the same function as the ctrl on win+linux hence you normally use M1,2,3 to test for them

Tom

Von meinem iPhone gesendet


Am 09.10.2014 um 18:15 schrieb Lars Vogel <
lars.vogel@xxxxxxxxx>:

Thanks Markus for the clarification. (Btw: sounds a bit contradictory to Toms statement.).

Best regards, Lars

2014-10-09 18:06 GMT+02:00 Markus Keller <markus_keller@xxxxxxxxxx>:
Yes, the Windows logo / Super key is not supported by SWT, and support is not planned.

http://msdn.microsoft.com/en-us/library/windows/desktop/dn742465%28v=vs.85%29.aspx#Choosing_shortcut_keys__what_not_to_do_ says:
"Don't use the Windows logo modifier key for program shortcut keys. Windows logo key is reserved for Windows use."


https://developer.gnome.org/hig/stable/keyboard-input.html.en#system-shortcuts says:
"The Super key is intended as a system-level key, and should not be used by applications."


Markus




From:        
Lars Vogel <lars.vogel@xxxxxxxxx>
To:        
platform-swt-dev@xxxxxxxxxxx
Date:        
2014-10-09 16:37
Subject:        
[platform-swt-dev] SWT Event for the Windows key
Sent by:        
platform-swt-dev-bounces@xxxxxxxxxxx




Hi,

I was asked why we (platform.ui) don't have a mapping for the Windows key in our SWTKeyLookup class located in JFace.

AFAIK there is no SWT key event for the windows button. If that is correct, is their a reason for this? Is it planned to add this event?

Best regards, Lars
_______________________________________________
platform-swt-dev mailing list

platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_______________________________________________
platform-swt-dev mailing list

platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

_______________________________________________
platform-swt-dev mailing list

platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit

https://dev.eclipse.org/mailman/listinfo/platform-swt-dev_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev
_______________________________________________
platform-swt-dev mailing list
platform-swt-dev@xxxxxxxxxxx
To change your delivery options, retrieve your password, or unsubscribe from this list, visit
https://dev.eclipse.org/mailman/listinfo/platform-swt-dev

Back to the top