devdraw: fix Mac Kcmd+Shift

Change-Id: Ide32a9397701085b17fbd42f0866eb3de11e4190
Reviewed-on: https://plan9port-review.googlesource.com/2940
Reviewed-by: Russ Cox <rsc@swtch.com>
This commit is contained in:
Russ Cox 2017-07-15 20:22:59 -06:00
parent 711336c348
commit 00b50225c2

View file

@ -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;