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
diff options
context:
space:
mode:
authorBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-10 22:39:35 +0400
committerBrecht Van Lommel <brechtvanlommel@gmail.com>2014-01-10 22:41:01 +0400
commit79e040ba9581a2f386bbb467d43998e779accf78 (patch)
tree9f531759f89fd20ab7bab7dfc37adf41663f3644 /intern/ghost
parent10b5ad5bae9e6cbd5a3b37a9cb492cf9e2558a48 (diff)
Fix T38143: pressing F12 key in the text editor on OS X would type an invalid character.
Diffstat (limited to 'intern/ghost')
-rw-r--r--intern/ghost/intern/GHOST_SystemCocoa.mm4
1 files changed, 4 insertions, 0 deletions
diff --git a/intern/ghost/intern/GHOST_SystemCocoa.mm b/intern/ghost/intern/GHOST_SystemCocoa.mm
index c60ded15d6c..b7b1079844e 100644
--- a/intern/ghost/intern/GHOST_SystemCocoa.mm
+++ b/intern/ghost/intern/GHOST_SystemCocoa.mm
@@ -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';