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:
parent
03d7fdacd6
commit
079747e8cb
@ -1,3 +1,10 @@
|
||||
2008-06-29 Tommi Komulainen <tommi.komulainen@iki.fi>
|
||||
|
||||
* 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>#
|
||||
|
||||
2008-06-27 Matthew Allum <mallum@openedhand.com>
|
||||
|
||||
* clutter/cogl/gl/cogl.c:
|
||||
|
@ -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];
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user