You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ha...@apache.org on 2019/02/06 09:11:24 UTC

[royale-asjs] branch develop updated: Revert "Fixes #392"

This is an automated email from the ASF dual-hosted git repository.

harbs pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/royale-asjs.git


The following commit(s) were added to refs/heads/develop by this push:
     new a245cd1  Revert "Fixes #392"
a245cd1 is described below

commit a245cd1c7910c2db899b88af1d83f960adc0001c
Author: Harbs <ha...@in-tools.com>
AuthorDate: Wed Feb 6 11:11:13 2019 +0200

    Revert "Fixes #392"
    
    This reverts commit 3c6cbb78cfa43dfa1a569cb9c7dec289d7e58e93.
---
 .../src/main/royale/mx/events/KeyboardEvent.as     | 33 ++++++++--------------
 1 file changed, 11 insertions(+), 22 deletions(-)

diff --git a/frameworks/projects/MXRoyale/src/main/royale/mx/events/KeyboardEvent.as b/frameworks/projects/MXRoyale/src/main/royale/mx/events/KeyboardEvent.as
index 8f9f58e..6284848 100644
--- a/frameworks/projects/MXRoyale/src/main/royale/mx/events/KeyboardEvent.as
+++ b/frameworks/projects/MXRoyale/src/main/royale/mx/events/KeyboardEvent.as
@@ -23,10 +23,6 @@ COMPILE::SWF
 {
 import flash.events.KeyboardEvent;  
 }
-COMPILE::JS
-{
-	import goog.events.BrowserEvent;
-}
 /* import mx.events.Event;*/
 import org.apache.royale.events.Event;
 import org.apache.royale.events.IRoyaleEvent;
@@ -118,25 +114,18 @@ public class KeyboardEvent extends org.apache.royale.events.KeyboardEvent
 		} 
 		
 		
-		private static function platformConstant(s:uint):uint
-		{
-				return s;
-		}
-		private static function platformConstant1(s:String):String
-		{
-				return s;
-		}
-		private static var _capsLock:Boolean;
+		 private static function platformConstant(s:uint):uint
+        	{
+            	return s;
+       	 	}
+		 private static function platformConstant1(s:String):String
+        	{
+            	return s;
+        	}
 		public static function get capsLock():Boolean
-		{
-			return _capsLock;
-		}
-		override public function wrapEvent(event:goog.events.BrowserEvent):void
-		{
-			super.wrapEvent(event);
-			_capsLock = nativeEvent["getModifierState"]("CapsLock");
-		}
-
+	        {
+	        return true;
+	        }
 	//--------------------------------------------------------------------------
 	//
 	//  Class constants