This is an automated email from the ASF dual-hosted git repository. carlosrovira 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 74babf6 Core: KeyboardEvent add new constants 74babf6 is described below commit 74babf67576309911f53e6c05a985c57702c410f Author: Carlos Rovira <carlosrov...@apache.org> AuthorDate: Wed Apr 22 18:55:19 2020 +0200 Core: KeyboardEvent add new constants --- .../Core/src/main/royale/org/apache/royale/events/KeyboardEvent.as | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/frameworks/projects/Core/src/main/royale/org/apache/royale/events/KeyboardEvent.as b/frameworks/projects/Core/src/main/royale/org/apache/royale/events/KeyboardEvent.as index 623bb83..4ce4ddf 100644 --- a/frameworks/projects/Core/src/main/royale/org/apache/royale/events/KeyboardEvent.as +++ b/frameworks/projects/Core/src/main/royale/org/apache/royale/events/KeyboardEvent.as @@ -49,10 +49,15 @@ package org.apache.royale.events COMPILE::JS public static const KEY_UP:String = "keyup"; + // these are the ones reported by browsers directly public static const KEYCODE__UP:String = "ArrowUp"; public static const KEYCODE__DOWN:String = "ArrowDown"; + public static const KEYCODE__LEFT:String = "ArrowLeft"; + public static const KEYCODE__RIGHT:String = "ArrowRight"; public static const KEYCODE__ENTER:String = "Enter"; + public static const KEYCODE__TAB:String = "Tab"; + // these ones only exists on nativeEvent object public static const KEYCODE_UP:uint = 38; public static const KEYCODE_DOWN:uint = 40; public static const KEYCODE_LEFT:uint = 37;