Welcome to the Official BlackBerry® Support Community Forums. This is your resource to discuss support topics with your peers, and learn from each other. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Adobe AIR Development

Reply
Developer
RapsFan
Posts: 383
Registered: 08-02-2010
My Carrier: Telus
Accepted Solution

SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE broken in 2.0?

In my app previous to the 2.0 update I was using:

 

this.addEventListener(SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE, resize);
...

public function resize(e:SoftKeyboardEvent):void{
				trace("activating");
				if(currentState == "landscape"){
					mainTextField.setActualSize(1024, 350);
				}
				if(currentState == "portrait"){
					mainTextField.needsSoftKeyboard = false;
				}
			}

 The trace isn't even firing.

Please use plain text.
Developer
RapsFan
Posts: 383
Registered: 08-02-2010
My Carrier: Telus

Re: SoftKeyboardEvent.SOFT_KEYBOARD_ACTIVATE broken in 2.0?

Ok I discovered the problem. The 2.0 keyboard behavior is different in that you need to select the textarea THEN manually activate the keyboard. If you click the textarea THEN bring up the keyboard the event won't fire. This is both good and bad as now the keyboard doesn't popup while scrolling the textarea, you have more control over it

Please use plain text.