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

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