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

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

commit 5963a891dda3841ddc46ddff38e11296e83e5468
Author: Alex Harui <aha...@apache.org>
AuthorDate: Sat Aug 11 17:35:25 2018 -0700

    we'll do this instead of flash.ui.Keyboard
---
 .../src/main/royale/org/apache/royale/events/KeyboardEvent.as    | 9 +++++++++
 1 file changed, 9 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 d447e3f..d8f630e 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
@@ -37,6 +37,15 @@ package org.apache.royale.events
         COMPILE::JS
         public static const KEY_UP:String = "keyup";
 
+        public static const KEYCODE_UP:uint = 38;
+        public static const KEYCODE_DOWN:uint = 40;
+        public static const KEYCODE_LEFT:uint = 37;
+        public static const KEYCODE_RIGHT:uint = 39;
+        public static const KEYCODE_PAGEUP:uint = 33;
+        public static const KEYCODE_PAGEDOWN:uint = 34;
+        public static const KEYCODE_HOME:uint = 36;
+        public static const KEYCODE_END:uint = 35;
+        
                /**
                 * @type {?goog.events.BrowserEvent}
                 */

Reply via email to