aboutsummaryrefslogtreecommitdiff
path: root/src/cmd/devdraw/cocoa-screen.m
diff options
context:
space:
mode:
Diffstat (limited to 'src/cmd/devdraw/cocoa-screen.m')
-rw-r--r--src/cmd/devdraw/cocoa-screen.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/cmd/devdraw/cocoa-screen.m b/src/cmd/devdraw/cocoa-screen.m
index 3cc7ad22..d01e3503 100644
--- a/src/cmd/devdraw/cocoa-screen.m
+++ b/src/cmd/devdraw/cocoa-screen.m
@@ -30,6 +30,7 @@
// Use non-deprecated names.
#define NSKeyDown NSEventTypeKeyDown
+#define NSShiftKeyMask NSEventModifierFlagShift
#define NSAlternateKeyMask NSEventModifierFlagOption
#define NSCommandKeyMask NSEventModifierFlagCommand
#define NSResizableWindowMask NSWindowStyleMaskResizable
@@ -903,6 +904,8 @@ getkeyboard(NSEvent *e)
interpretdeadkey(e);
if(m & NSCommandKeyMask){
+ if((m & NSShiftKeyMask) && 'a' <= c && c <= 'z')
+ c += 'A' - 'a';
if(' '<=c && c<='~')
keystroke(Kcmd+c);
break;