Author: manolo
Date: 2010-03-24 06:54:50 -0700 (Wed, 24 Mar 2010)
New Revision: 7327
Log:
Fixed bug where cmd-shift-key was not distinguished from cmd-key on US keyboards
Modified:
branches/branch-1.3/src/Fl_cocoa.mm
Modified: branches/branch-1.3/src/Fl_cocoa.mm
===================================================================
--- branches/branch-1.3/src/Fl_cocoa.mm 2010-03-24 12:07:45 UTC (rev 7326)
+++ branches/branch-1.3/src/Fl_cocoa.mm 2010-03-24 13:54:50 UTC (rev 7327)
@@ -1139,6 +1139,9 @@
static NSText *edit;
static int countevents;
static CFMutableStringRef sequence; // will contain the two characters of
the composition sequence
+ if ( (mods & NSShiftKeyMask) && (mods & NSCommandKeyMask) ) {
+ s = [s uppercaseString]; // US keyboards return lowercase letter in s if
cmd-shift-key is hit
+ }
if (compose) { // we are in a composition sequence
// the only benefit of sending events to the NSText object edit is that
the deadkey becomes visible
// at its keyUp event; without this, the deadkey remains invisible
_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit