Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Web and WebWorks Development

Reply
New Contributor
dwolfe
Posts: 3
Registered: ‎09-17-2012
My Device: Playbook
My Carrier: n/a
Accepted Solution

keyup event fails on Playbook OS Ver. 2.0.1.358

I have a simple text box that I apply an event handler for the keyup event on. But for some reason this keyup event never fires. I see there was a problem with older OS's for phones and this event but is there an issue with the playbook OS and this same event?

Please use plain text.
BlackBerry Development Advisor
chadtatro
Posts: 614
Registered: ‎10-01-2009
My Device: Z10
My Carrier: Bell

Re: keyup event fails on Playbook OS Ver. 2.0.1.358

Hello,

 

This is working fine for me here.  

 

Could you try downloading the latest Tablet simulator http://us.blackberry.com/sites/developers/resources/simulators.html, and SDK https://developer.blackberry.com/html5/download/sdk

 

Chad

 

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Please use plain text.
New Contributor
dwolfe
Posts: 3
Registered: ‎09-17-2012
My Device: Playbook
My Carrier: n/a

Re: keyup event fails on Playbook OS Ver. 2.0.1.358

Forgot to mention this was failing on the tablet browser not in a seperate app. In JS we add an event handler for keyup. In that handler we are updating and refreshing the value of the textbox. The string is in the text box until such time as focus is moved away from the text box then the text is removed.

Please use plain text.
Developer
Developer
LBP
Posts: 607
Registered: ‎04-29-2011
My Device: PlayBook 16GB, BB10 LE Z10 (red)
My Carrier: none

Re: keyup event fails on Playbook OS Ver. 2.0.1.358

Are you using an event listener for "keyup" events on the textbox or using the "onkeyup" function of the textbox? Using the last one it works really well for me.


"Like" if you liked the post.
"Accept as Solution" if the post solves your question.
Please use plain text.
BlackBerry Development Advisor
chadtatro
Posts: 614
Registered: ‎10-01-2009
My Device: Z10
My Carrier: Bell

Re: keyup event fails on Playbook OS Ver. 2.0.1.358

For example..

 

<input type="text" onkeyup="alert('up');"/>

 

Chad Tetreault | App Development Consultant | BlackBerry Developer Relations | developer.blackberry.com | @chadtatro
Please use plain text.
New Contributor
dwolfe
Posts: 3
Registered: ‎09-17-2012
My Device: Playbook
My Carrier: n/a

Re: keyup event fails on Playbook OS Ver. 2.0.1.358

yes we are using an event handler we attach to the text box. But I found my issue was the Predictive text feature. Once I turned that off in the code everything worked as expected.

Please use plain text.