forked from bartvdbraak/blender
Fix #36891: on OS X, cmd+s or cmd+o did not work when pressing them over the
text editor.
This commit is contained in:
parent
3ccb370d38
commit
15e5d3ef7b
@ -1771,6 +1771,10 @@ GHOST_TSuccess GHOST_SystemCocoa::handleKeyEvent(void *eventPtr)
|
||||
if ((keyCode > 266) && (keyCode < 271))
|
||||
utf8_buf[0] = '\0';
|
||||
|
||||
/* no text with command key pressed */
|
||||
if (m_modifierMask & NSCommandKeyMask)
|
||||
utf8_buf[0] = '\0';
|
||||
|
||||
if ((keyCode == GHOST_kKeyQ) && (m_modifierMask & NSCommandKeyMask))
|
||||
break; //Cmd-Q is directly handled by Cocoa
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user