Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/intern
diff options
context:
space:
mode:
authorJean First <robbott>2019-12-23 23:51:26 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-12-23 23:55:38 +0300
commit6c2eeba0c73d6d90619018a627a2b64a60bf7b53 (patch)
treeb9caa0786f9c668edc5f1ed45500400ace19c993 /intern
parent2ff996040d0245b6e558016314545177c8c85e9a (diff)
Fix T72382: Arrow keys fail in search menu
Diffstat (limited to 'intern')
-rw-r--r--intern/ghost/intern/GHOST_SystemCocoa.mm3
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))