diff options
author | Jean First <robbott> | 2019-12-23 23:51:26 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-12-23 23:55:38 +0300 |
commit | 6c2eeba0c73d6d90619018a627a2b64a60bf7b53 (patch) | |
tree | b9caa0786f9c668edc5f1ed45500400ace19c993 /intern/ghost | |
parent | 2ff996040d0245b6e558016314545177c8c85e9a (diff) |
Fix T72382: Arrow keys fail in search menu
Diffstat (limited to 'intern/ghost')
-rw-r--r-- | intern/ghost/intern/GHOST_SystemCocoa.mm | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm index 68bac7d153b..2f597aee476 100644 --- a/intern/ghost/intern/GHOST_SystemCocoa.mm +++ b/intern/ghost/intern/GHOST_SystemCocoa.mm @@ -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)) |