mirror of
https://github.com/9fans/plan9port.git
synced 2025-01-24 11:41:58 +00:00
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:
parent
711336c348
commit
00b50225c2
1 changed files with 3 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue