Przeglądaj źródła

Fixed some macos key issues.

Mark Sibly 9 lat temu
rodzic
commit
b2a861ea15

+ 2 - 1
modules/mojo/input/keycodes.monkey2

@@ -176,7 +176,7 @@ Enum Modifier
 	Alt=			LeftAlt|RightAlt
 	Alt=			LeftAlt|RightAlt
 	Gui=			LeftGui|RightGui
 	Gui=			LeftGui|RightGui
 	
 	
-#if __TARGET__="macos"
+#if __HOSTOS__="macos"
 	LeftMenu=		LeftGui
 	LeftMenu=		LeftGui
 	RightMenu=		RightGui
 	RightMenu=		RightGui
 	Menu=			Gui
 	Menu=			Gui
@@ -185,4 +185,5 @@ Enum Modifier
 	RightMenu=		RightControl
 	RightMenu=		RightControl
 	Menu=			Control
 	Menu=			Control
 #endif
 #endif
+
 End
 End

+ 1 - 1
modules/mojox/textview.monkey2

@@ -1090,7 +1090,7 @@ Class TextView Extends ScrollableView
 						
 						
 					Default
 					Default
 					
 					
-						If Not OnKeyDown( event.Key ) Return
+						If Not OnKeyDown( event.Key,event.Modifiers ) Return
 					End
 					End
 
 
 				Endif
 				Endif