mirror of
https://github.com/brl/mutter.git
synced 2025-06-13 16:59:30 +00:00
OSX: document Shift modifier speciality
* clutter/osx/clutter-event.osx.c (NSEvent:clutterKeyVal:): Add comment, on OSX backend the Shift modifier is included in 'keyval' making it identical to 'unicode_value' Instead of <Shift>a or <Shift>3 you'd get <Shift>A and <Shift>#
This commit is contained in:
@ -106,6 +106,11 @@ static GPollFunc old_poll_func = NULL;
|
||||
/* FIXME: doing this right is a lot of work, see gdkkeys-quartz.c in gtk+
|
||||
* For now handle some common/simple keys only. Might not work with other
|
||||
* hardware than mine (MacBook Pro, finnish layout). Sorry.
|
||||
*
|
||||
* charactersIgnoringModifiers ignores most modifiers, not Shift though.
|
||||
* So, for all Shift-modified keys we'll end up reporting 'keyval' identical
|
||||
* to 'unicode_value' Instead of <Shift>a or <Shift>3 you'd get <Shift>A
|
||||
* and <Shift>#
|
||||
*/
|
||||
unichar c = [[self charactersIgnoringModifiers] characterAtIndex:0];
|
||||
|
||||
|
Reference in New Issue
Block a user