You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@royale.apache.org by ah...@apache.org on 2019/12/03 03:08:16 UTC

[royale-asjs] branch develop updated: these didn't seem needed and were allowing .% and '. Should fix #603

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

aharui 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 73cdcdc  these didn't seem needed and were allowing .% and '.  Should fix #603
73cdcdc is described below

commit 73cdcdc6206c1963a664d347288b5c6f4993ef78
Author: Alex Harui <ah...@apache.org>
AuthorDate: Mon Dec 2 19:07:20 2019 -0800

    these didn't seem needed and were allowing .% and '.  Should fix #603
---
 .../org/apache/royale/html/accessories/RestrictTextInputBead.as  | 9 ---------
 1 file changed, 9 deletions(-)

diff --git a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/accessories/RestrictTextInputBead.as b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/accessories/RestrictTextInputBead.as
index c88e5c5..72db29d 100644
--- a/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/accessories/RestrictTextInputBead.as
+++ b/frameworks/projects/Basic/src/main/royale/org/apache/royale/html/accessories/RestrictTextInputBead.as
@@ -133,15 +133,6 @@ package org.apache.royale.html.accessories
 		{
 			var code:int = event.charCode;
 			
-			// backspace or delete
-			if (event.keyCode == 8 || event.keyCode == 46) return;
-			
-			// tab or return/enter
-			if (event.keyCode == 9 || event.keyCode == 13) return;
-			
-			// left or right cursor arrow
-			if (event.keyCode == 37 || event.keyCode == 39) return;
-			
 			var key:String = String.fromCharCode(code);
 			
             if (restrict)