You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/06/21 10:49:13 UTC

git commit: [flex-asjs] [refs/heads/tlf] - include shift in new KeyboardEvent

Repository: flex-asjs
Updated Branches:
  refs/heads/tlf 18d26d585 -> c40993826


include shift in new KeyboardEvent


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/c4099382
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/c4099382
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/c4099382

Branch: refs/heads/tlf
Commit: c4099382611514f42c815f14f8e5cec5457597e7
Parents: 18d26d5
Author: Harbs <ha...@in-tools.com>
Authored: Wed Jun 21 13:49:11 2017 +0300
Committer: Harbs <ha...@in-tools.com>
Committed: Wed Jun 21 13:49:11 2017 +0300

----------------------------------------------------------------------
 .../flex/org/apache/flex/events/utils/KeyboardEventConverter.as  | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/c4099382/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/KeyboardEventConverter.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/KeyboardEventConverter.as b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/KeyboardEventConverter.as
index 0ad0e1d..1ee74b6 100644
--- a/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/KeyboardEventConverter.as
+++ b/frameworks/projects/Core/src/main/flex/org/apache/flex/events/utils/KeyboardEventConverter.as
@@ -52,7 +52,7 @@ package org.apache.flex.events.utils
 			var key:String = KeyConverter.convertCharCode(oldEvent.charCode);
 			var type:String = oldEvent.type == flash.events.KeyboardEvent.KEY_DOWN ? org.apache.flex.events.KeyboardEvent.KEY_DOWN : 
 				org.apache.flex.events.KeyboardEvent.KEY_UP;
-			var newEvent:org.apache.flex.events.KeyboardEvent = new org.apache.flex.events.KeyboardEvent(type, key, code);
+			var newEvent:org.apache.flex.events.KeyboardEvent = new org.apache.flex.events.KeyboardEvent(type, key, code, oldEvent.shiftKey);
 			newEvent.altKey = oldEvent.altKey;
 //			newEvent.ctrlKey = oldEvent.controlKey; // TODO
 			newEvent.specialKey = oldEvent.ctrlKey;
@@ -77,7 +77,7 @@ package org.apache.flex.events.utils
 			var code:String = oldEvent.code;
 			if (code == null)
 				code = KeyConverter.convertKeyCode(oldEvent['keyCode']);
-			var newEvent:org.apache.flex.events.KeyboardEvent = new org.apache.flex.events.KeyboardEvent(type, key, code);
+			var newEvent:org.apache.flex.events.KeyboardEvent = new org.apache.flex.events.KeyboardEvent(type, key, code, oldEvent.shiftKey);
 			newEvent.altKey = oldEvent.altKey;
 			newEvent.ctrlKey = oldEvent.ctrlKey;
 			newEvent.metaKey = oldEvent.metaKey;