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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Web and WebWorks Development

Reply
Developer
Philipk
Posts: 495
Registered: ‎05-06-2012
My Carrier: wifi
Accepted Solution

Webworks Keyboard Shortcuts?

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

_________________________________________________________
Twitter: @PhilipK_ca
Please use plain text.
Developer
DueNorth
Posts: 132
Registered: ‎09-25-2012
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.

 

Please use plain text.
Developer
Philipk
Posts: 495
Registered: ‎05-06-2012
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.
_________________________________________________________
Twitter: @PhilipK_ca
Please use plain text.
Developer
DueNorth
Posts: 132
Registered: ‎09-25-2012
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).

Please use plain text.
Developer
Philipk
Posts: 495
Registered: ‎05-06-2012
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.
_________________________________________________________
Twitter: @PhilipK_ca
Please use plain text.
Developer
DueNorth
Posts: 132
Registered: ‎09-25-2012
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. 

Please use plain text.
Developer
Philipk
Posts: 495
Registered: ‎05-06-2012
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?
_________________________________________________________
Twitter: @PhilipK_ca
Please use plain text.
Developer
DueNorth
Posts: 132
Registered: ‎09-25-2012
My Carrier: Rogers

Re: Webworks Keyboard Shortcuts?

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

Please use plain text.