Fix T72382: Arrow keys fail in search menu

This commit is contained in:
Jean First 2019-12-24 07:51:26 +11:00 committed by Campbell Barton
parent 2ff996040d
commit 6c2eeba0c7
Notes: blender-bot 2023-02-14 03:21:27 +01:00
Referenced by issue #72382, Arrow Keys cannot walk the search menu (F3)
1 changed files with 2 additions and 1 deletions

View File

@ -1802,8 +1802,9 @@ GHOST_TSuccess GHOST_SystemCocoa::handleKeyEvent(void *eventPtr)
}
/* arrow keys should not have utf8 */
if ((keyCode > 266) && (keyCode < 271))
if ((keyCode >= GHOST_kKeyLeftArrow) && (keyCode <= GHOST_kKeyDownArrow)) {
utf8_buf[0] = '\0';
}
/* F keys should not have utf8 */
if ((keyCode >= GHOST_kKeyF1) && (keyCode <= GHOST_kKeyF20))