summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/Fl_cocoa.mm3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl_cocoa.mm b/src/Fl_cocoa.mm
index 136926f07..55673b547 100644
--- a/src/Fl_cocoa.mm
+++ b/src/Fl_cocoa.mm
@@ -1139,6 +1139,9 @@ OSStatus cocoaKeyboardHandler(NSEvent *theEvent)
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