From 079747e8cb0bb5f97306ca8ca45597b4849397b8 Mon Sep 17 00:00:00 2001 From: Tommi Komulainen Date: Sun, 29 Jun 2008 10:31:05 +0000 Subject: [PATCH] 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 a or 3 you'd get A and # --- ChangeLog | 7 +++++++ clutter/osx/clutter-event-osx.c | 5 +++++ 2 files changed, 12 insertions(+) diff --git a/ChangeLog b/ChangeLog index 8d226e994..773423f70 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2008-06-29 Tommi Komulainen + + * 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 a or + 3 you'd get A and # + 2008-06-27 Matthew Allum * clutter/cogl/gl/cogl.c: diff --git a/clutter/osx/clutter-event-osx.c b/clutter/osx/clutter-event-osx.c index a622cc4dc..d4afa8230 100644 --- a/clutter/osx/clutter-event-osx.c +++ b/clutter/osx/clutter-event-osx.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 a or 3 you'd get A + * and # */ unichar c = [[self charactersIgnoringModifiers] characterAtIndex:0];