From 191abba69ae9a1d34c3ef846974c3892b799b56c Mon Sep 17 00:00:00 2001 From: Manolo Gouy Date: Sat, 20 Feb 2010 14:06:36 +0000 Subject: [PATCH] Fixed Alt+Shift+letter as shortcut git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_cocoa.mm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm index 6dd795067..0068aa699 100644 --- a/src/Fl_cocoa.mm +++ b/src/Fl_cocoa.mm @@ -1182,6 +1182,8 @@ OSStatus cocoaKeyboardHandler(NSEvent *theEvent) UniChar one; CFStringGetCharacters((CFStringRef)sim, CFRangeMake(0, 1), &one); sym = one; + // charactersIgnoringModifiers does'nt ignore shift, remove it when it's on + if(sym >= 'A' && sym <= 'Z') sym += 32; } Fl::e_keysym = Fl::e_original_keysym = sym;