Browse Source

Fixed some macos key issues.

Mark Sibly 9 years ago
parent
commit
b2a861ea15
2 changed files with 3 additions and 2 deletions
  1. 2 1
      modules/mojo/input/keycodes.monkey2
  2. 1 1
      modules/mojox/textview.monkey2

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

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

+ 1 - 1
modules/mojox/textview.monkey2

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