Jump to content
GreenSock

Search In
  • More options...
Find results that contain...
Find results in...
Boris

@-Sign will destroy any Flextransformer-App

Recommended Posts

Hi Jack,

i found a curios bug in the FlexTransformer. If you add a @-Sign into a FlexTransformer-App, the whole behavior becomes strange.

 

If you want, i can send you an Demo-Project, that will demonstate this bug.

 

lg Boris

Link to comment
Share on other sites

We researched a little bit and we found that every sign that is produced with the german ALT-GR Combination (@\~{}[]€|) will destroy the App

Link to comment
Share on other sites

fixed that issue in TransformManager.as:

 

/** @private **/
	private static function onKeyPress($e:KeyboardEvent):void {
           //DISABLE Alt Gr Keyboard-Input
		if ($e.keyCode == 17 || $e.keyCode == 18)
		{
			return;
		}

		_keysDown[$e.keyCode] = true;
           if ($e.keyCode == Keyboard.DELETE || $e.keyCode == Keyboard.BACKSPACE) {
           	_keyDispatcher.dispatchEvent(new KeyboardEvent("pressDelete"));
           } else if ($e.keyCode == Keyboard.SHIFT || $e.keyCode == Keyboard.CONTROL) {
           	_keyDispatcher.dispatchEvent(new KeyboardEvent("pressMultiSelectKey"));
           } else if($e.keyCode == Keyboard.UP || $e.keyCode == Keyboard.DOWN || $e.keyCode == Keyboard.LEFT || $e.keyCode == Keyboard.RIGHT) {
       		var kbe:KeyboardEvent = new KeyboardEvent("pressArrowKey", true, false, $e.charCode, $e.keyCode, $e.keyLocation, $e.ctrlKey, $e.altKey, $e.shiftKey);
       		_keyDispatcher.dispatchEvent(kbe);
           }
       }

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×