diff options
| author | Manolo Gouy <Manolo> | 2010-02-20 14:06:36 +0000 |
|---|---|---|
| committer | Manolo Gouy <Manolo> | 2010-02-20 14:06:36 +0000 |
| commit | 191abba69ae9a1d34c3ef846974c3892b799b56c (patch) | |
| tree | b6f2924896fa02c7d72f48d48d0d4604359d811a | |
| parent | 0786bea02e43ac8cba9791120f8fd3e70d9ee2a5 (diff) | |
Fixed Alt+Shift+letter as shortcut
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@7113 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | src/Fl_cocoa.mm | 2 |
1 files changed, 2 insertions, 0 deletions
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; |
