fixes vkey input in keyboard/edit controls
authorJonathan Marshall <jmarshall@never.you.mind>
Sun, 1 May 2011 08:37:59 +0000 (20:37 +1200)
committerJonathan Marshall <jmarshall@never.you.mind>
Sun, 1 May 2011 08:37:59 +0000 (20:37 +1200)
xbmc/input/KeyboardStat.cpp

index d3faebc..25b835f 100644 (file)
@@ -211,7 +211,7 @@ const CKey CKeyboardStat::ProcessKeyDown(XBMC_keysym& keysym)
 
   ascii = 0;
   vkey = 0;
-  unicode = keysym.unicode;
+  unicode = 0;
   held = 0;
 
   modifiers = 0;
@@ -241,6 +241,7 @@ const CKey CKeyboardStat::ProcessKeyDown(XBMC_keysym& keysym)
   // For printing keys look up the unicode
   else if (KeyTableLookupUnicode(keysym.unicode, &keytable))
   {
+    unicode = keytable.unicode;
     ascii = keytable.ascii;
     vkey = keytable.vkey;
   }