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
do5734
Posts: 4
Registered: ‎04-05-2011
My Device: BB 9700

onkeyup and BACKSPACE

 

Hi,
i need to get value of a INPUT of type TEXT in real time. So i assigned to onkeyup of the INPUT to my function, that evaluates the new value.
It works fine on BB (i use 9780/OS6 for tests) except, that BACKSPACE-Key doesn't fire the event.
Here there's an example of code.
may be you have an idea, how to solve it.
Thanks a lot in advance!
Daniel

 

New Member
SUPERGADGET
Posts: 1
Registered: ‎01-09-2012
My Device: 9800\OS6

Re: onkeyup and BACKSPACE

Bump
Same problem with 9800/OS6.
I can make a workaround with setInterval(), but I'd like a better solution if there is any.
Trusted Contributor
lcocea
Posts: 117
Registered: ‎02-29-2012
My Device: PlayBook & Nexus 4

Re: onkeyup and BACKSPACE

[ Edited ]

Same problem here: Backspace key does not trigger onKeyUp event in WebWorks for PlayBook OS 2.0.

 

Edit: Actually, sometimes it does and sometimes it doesn't.

Developer
ignites
Posts: 466
Registered: ‎04-11-2012
My Device: Bold 9900

Re: onkeyup and BACKSPACE

[ Edited ]

in my Now Serving App my code is as follows : onkeypress="{if (event.keyCode==13) callFunction(this.form)}"

 

keycode 13 is enter... maybe you should try that? 


Developer for easyDial for BlackBerry Bold & inLink for BlackBerry PlayBook
Find me online via twitter, or on the techfruits.com webpage. Please hit the like button below if what I said helped!
Trusted Contributor
lcocea
Posts: 117
Registered: ‎02-29-2012
My Device: PlayBook & Nexus 4

Re: onkeyup and BACKSPACE

Intercept an additional event only for the Del key as backup... Good idea, I'll give it a try.

Trusted Contributor
lcocea
Posts: 117
Registered: ‎02-29-2012
My Device: PlayBook & Nexus 4

Re: onkeyup and BACKSPACE

[ Edited ]

Nope, still behaving randomly. The text is deleted when I press BACKSPACE but for some reason the events are not triggered.

Developer
squished18
Posts: 289
Registered: ‎10-17-2008
My Device: Torch 9800

Re: onkeyup and BACKSPACE

I am running into this problem as well. Has anyone come up with a solution?

 

Thanks,

 

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
Developer
squished18
Posts: 289
Registered: ‎10-17-2008
My Device: Torch 9800

Re: onkeyup and BACKSPACE

I'm using jQuery on PlayBook. Any workarounds for this?

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
Developer
squished18
Posts: 289
Registered: ‎10-17-2008
My Device: Torch 9800

Re: onkeyup and BACKSPACE

Here is a description of the symptoms I am seeing:

 

* When I type in the <textarea>, the .keyup event triggers correctly for all letters pressed. This includes the space bar.

* When I press the Backspace key, the .keyup event does not trigger. I tried to trap the .keyup event using $(document).keyup but that didn't catch the Backspace key either.

* If the <textarea> is empty and I press the Backspace key once more, the .keyup event triggers.

* When I trace using Web Inspector, the Event Listener Breakpoint for Keyboard.keyup does trigger when I press the Backspace key, but it is not captured by either $(document).keyup for the <textarea>.keyup.

 

Any help would be appreciated.

 

Thanks,

feel free to press the like button on the right side to thank the user that helped you.
please mark posts as solved if you found a solution.
Developer
Simpler
Posts: 49
Registered: ‎01-17-2010
My Device: Curve 9300

Re: onkeyup and BACKSPACE

I'm having this same probem and looking for a solution.

- Simulator 6.0.0.668 (9300)
- Windows 7 64bit
- Curve 9300 with App Version: 6.0.0.668 (2949)