flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jmcl...@apache.org
Subject git commit: [flex-sdk] [refs/heads/develop] - FLEX-35056 Fix RTE when pressing escape
Date Wed, 30 Mar 2016 01:05:34 GMT
Repository: flex-sdk
Updated Branches:
  refs/heads/develop f543314c4 -> 8c46a10b8


FLEX-35056 Fix RTE when pressing escape


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

Branch: refs/heads/develop
Commit: 8c46a10b807ca1e06ca570671601dc9ac6aa4685
Parents: f543314
Author: Justin Mclean <jmclean@apache.org>
Authored: Wed Mar 30 12:05:11 2016 +1100
Committer: Justin Mclean <jmclean@apache.org>
Committed: Wed Mar 30 12:05:11 2016 +1100

----------------------------------------------------------------------
 frameworks/projects/experimental/src/spark/components/Alert.as | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-sdk/blob/8c46a10b/frameworks/projects/experimental/src/spark/components/Alert.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/experimental/src/spark/components/Alert.as b/frameworks/projects/experimental/src/spark/components/Alert.as
index 61e1324..c944a74 100644
--- a/frameworks/projects/experimental/src/spark/components/Alert.as
+++ b/frameworks/projects/experimental/src/spark/components/Alert.as
@@ -539,7 +539,8 @@ package spark.components {
          *  @playerversion Flash 9
          *  @playerversion AIR 1.1
          *  @productversion Flex 3
-         */ public function get defaultButtonFlag():int {
+         */
+	public function get defaultButtonFlag():int {
             return _defaultButtonFlag;
         }
 
@@ -838,7 +839,7 @@ package spark.components {
          */
         private function onKeyDown(e:KeyboardEvent):void {
             if (e.charCode == Keyboard.ESCAPE) {
-                removeAlert(identifyButton(_buttons[ _defaultButtonFlag ] as Button));
+                removeAlert(identifyButton(getDefaultButton()));
             }
         }
     }


Mime
View raw message