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 e8ec13f20df6511a11f1b6afe675eda0a2c1cc1b..58a856375bb9c4d2fb8db33ea2a100859ebc51a8 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: