OSX fix for recent utf8 commit
authorDalai Felinto <dfelinto@gmail.com>
Thu, 20 Oct 2011 06:29:14 +0000 (06:29 +0000)
committerDalai Felinto <dfelinto@gmail.com>
Thu, 20 Oct 2011 06:29:14 +0000 (06:29 +0000)
intern/ghost/intern/GHOST_SystemCocoa.mm

index e8ec13f..58a8563 100644 (file)
@@ -1655,8 +1655,8 @@ GHOST_TSuccess GHOST_SystemCocoa::handleKeyEvent(void *eventPtr)
                return GHOST_kFailure;
        }
        
+       char utf8_buf[6]= {'\0'}; /* TODO, unicode input */
        switch ([event type]) {
-               char utf8_buf[6]= {'\0'}; /* TODO, unicode input */
 
                case NSKeyDown:
                case NSKeyUp: