Fix T38143: pressing F12 key in the text editor on OS X would type an invalid character.
This commit is contained in:
parent
10b5ad5bae
commit
79e040ba95
Notes:
blender-bot
2023-02-14 11:21:43 +01:00
Referenced by issue #38143, OSX: Text Editor F12 (for Render) gives
|
@ -1559,6 +1559,10 @@ GHOST_TSuccess GHOST_SystemCocoa::handleKeyEvent(void *eventPtr)
|
|||
if ((keyCode > 266) && (keyCode < 271))
|
||||
utf8_buf[0] = '\0';
|
||||
|
||||
/* F keys should not have utf8 */
|
||||
if ((keyCode >= GHOST_kKeyF1) && (keyCode <= GHOST_kKeyF20))
|
||||
utf8_buf[0] = '\0';
|
||||
|
||||
/* no text with command key pressed */
|
||||
if (m_modifierMask & NSCommandKeyMask)
|
||||
utf8_buf[0] = '\0';
|
||||
|
|
Loading…
Reference in New Issue