royale-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From aha...@apache.org
Subject [royale-asjs] 02/03: we'll do this instead of flash.ui.Keyboard
Date Sun, 12 Aug 2018 00:36:58 GMT
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 <aharui@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}
 		 */


Mime
View raw message