![]() |
capturing keyboard events on BB in javascript Hi, I am using a BB8900 with OS 4.6. I was wondering if it's possible to capture keyboard events from the blackberry browser via javascript on a webpage. Please note that I only care about the browser that comes with OS 4.6 as all blackberries accessing the site will be running that version. I've created a listener: Code: function processKeyPress()Code: document.addEventListener('keypress', processKeyPress, false);The BB javascript documentation claims that the BB is supposed to be able to handle keyboard events but they never seem to be handled. It seems as though these keypresses are instead being trapped by the browser for use as keyboard shortcuts. For example, hitting 'd' will cause the browser to minimize. Is there anyway to have these keypresses processed by the page instead? Any tricks? NOTE: The same thing if I attempt the following: Code: <body onkeypress="processKeyPress();">TIA. |
| All times are GMT -5. The time now is 02:29 AM. |
Powered by vBulletin® Version 3.6.12
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.