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


Thank you for visiting the BlackBerry Support Community Forums.

BlackBerry will be closing the BlackBerry Support Community Forums Device Forums on April 1st (Developers, see below)

BlackBerry remains committed to providing excellent customer support to our customers. We are delighted to direct you to the CrackBerry Forums, a well-established and thorough support channel, for continued BlackBerry support. Please visit http://forums.crackberry.com or http://crackberry.com/ask. You can also continue to visit BlackBerry Support or the BlackBerry Knowledge Base for official support options available for your BlackBerry Smartphone.

"When we launched CrackBerry.com 10 years ago, we set out to make it a fun and useful destination where BlackBerry Smartphone owners could share their excitement and learn to unleash the full potential of their BlackBerry. A decade later, the CrackBerry community is as active and passionate as ever and I know our knowledgeable members and volunteers will be excited to welcome and assist more BlackBerry owners with their questions."

- Kevin Michaluk, Founder, CrackBerry.com

Developers, for more information about the BlackBerry Developer Community please review Join the Conversation on the BlackBerry Developer Community Forums found on Inside BlackBerry.


Reply
Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi
Accepted Solution

Webworks Keyboard Shortcuts?

Can't find documentation on keyboard shortcuts using webworks. Can someone post a link?

_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Developer
Posts: 135
Registered: ‎09-25-2012
My Device: Dev Alpha
My Carrier: Rogers

Re: Webworks Keyboard Shortcuts?

I wrote asking for something similar here:

http://supportforums.blackberry.com/t5/Testing-and-Deployment/BlackBerry-Keyboard/td-p/2203455

 

They do have some information on their site:

 

http://developer.blackberry.com/devzone/design/bb10/keyboards.html

 

However it doesn't cover all the navigational elements. Or what they consider recommendations.

 

Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Webworks Keyboard Shortcuts?

I saw your post but decided to start a new one because I wasn't sure if you were asking in regards to the Native SDK or Webworks.
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Developer
Posts: 135
Registered: ‎09-25-2012
My Device: Dev Alpha
My Carrier: Rogers

Re: Webworks Keyboard Shortcuts?

I posted it there because I figure it would be for all dev platforms since the short cuts would be the same. 

 

I did find this (thanks to Google), but I would like to get an official BlackBerry stance on it because it is almost 5 years old:

 

http://crackberry.com/blackberry-101-beginners-guide-keyboard-shortcuts

 

They must be using for their apps within Q10 and I would like to follow what they are using (for a better user experience).

Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Webworks Keyboard Shortcuts?

Yeah I'm not asking what keys are common practise for what shortcuts. So it would be more useful to post your link in the previous thread you had started.

I specifically want to know how do I map a given key to a javascript function.
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Developer
Posts: 135
Registered: ‎09-25-2012
My Device: Dev Alpha
My Carrier: Rogers

Re: Webworks Keyboard Shortcuts?

Oh, for that it was talked about on the Dev Blog:

 

http://devblog.blackberry.com/2013/02/blackberry-q10-webworks/

 

"If you wish to provide your user keyboard shortcuts within your application, you can use the standard HTML5 onkeypress event.  Set a listener on the appropriate HTML elements, process the key stroke and trigger the action."

 

http://www.w3schools.com/jsref/event_onkeypress.asp

 

Hope this helps. 

Developer
Posts: 676
Registered: ‎05-06-2012
My Device: Dev Alpha & PlayBook
My Carrier: wifi

Re: Webworks Keyboard Shortcuts?

That's awesome and helps a lot.

Do you know if the Q10 on Ripple can simulates keypress when you hit one of the keys?
_________________________________________________________
co-founder of Diaree | BB Dev for PictureThis
Highlighted
Developer
Posts: 135
Registered: ‎09-25-2012
My Device: Dev Alpha
My Carrier: Rogers

Re: Webworks Keyboard Shortcuts?

I haven't tried it, but I don't see why it wouldn't.