2
0
Эх сурвалжийг харах

Fixed Keyboard.GetChar unicode handling

Mark Sibly 8 жил өмнө
parent
commit
6acdb57c4a

+ 3 - 2
modules/mojo/input/keyboard.monkey2

@@ -289,9 +289,10 @@ Class KeyboardDevice Extends InputDevice
 		Case SDL_TEXTINPUT
 		
 			Local tevent:=Cast<SDL_TextInputEvent Ptr>( event )
-			Local char:=tevent->text[0]
-			If char PushChar( char )
 			
+			Local text:=String.FromCString( tevent->text )
+			
+			If text PushChar( text[0] )
 		End
 
 	End