Browse Source

tmp macos fix for numlock.

Mark Sibly 7 years ago
parent
commit
c879c2beaa
1 changed files with 7 additions and 1 deletions
  1. 7 1
      modules/mojox/textview.monkey2

+ 7 - 1
modules/mojox/textview.monkey2

@@ -1284,7 +1284,12 @@ Class TextView Extends ScrollableView
 		
 		
 			Local key:=event.Key
 			Local key:=event.Key
 			Local modifiers:=event.Modifiers
 			Local modifiers:=event.Modifiers
-			
+
+			'Note: NumLock doesn't work here on any of my keyboards on macos. I get both keypad consts
+			'AND '0', '1', KeyChars, and NumLock modifier is always 'off' so ignore Keypad consts
+			'on macos for now.
+			'
+#If __TARGET__<>"macos"
 			'map keypad nav keys...
 			'map keypad nav keys...
 			If Not (modifiers & Modifier.NumLock)
 			If Not (modifiers & Modifier.NumLock)
 				Select key
 				Select key
@@ -1299,6 +1304,7 @@ Class TextView Extends ScrollableView
 				Case Key.Keypad0 key=Key.Insert
 				Case Key.Keypad0 key=Key.Insert
 				End
 				End
 			Endif
 			Endif
+#endif
 			
 			
 			Local r:=False
 			Local r:=False