02-19-2013 06:07 PM
We have a page on intranet that doesn't work with blackberry 10 devices
the java script is
function checkEnterKey(e) {
var key = window.event ? e.keyCode : e.which;
if (key == 13) {
startSearch();
return false;
}
return true;
}
does anyone know what is the key code for blackberrys "submit" on the keyboard?
if we have a field that you type text and then click on a submit button that works.
02-19-2013 06:42 PM
Try (key == 13 || key == 10)
But could it be that your button is intercepting the event and not bubbling it up to "window"?
02-19-2013 06:45 PM
tried both 10 and 13
if we do js alert and type "a" a pop uyp comes up with 97
but if you hit enter - page reloads
02-19-2013 06:52 PM
02-19-2013 07:27 PM
It's strange because I just did a test and backspace was detected as keycode 8.
The reloading of the page may suggest that you're "posting" the form instead of processing it via Javascript. I had a similar issue in one app on the PlayBook, I'll try to see if I can find out more about the issue we had.
02-19-2013 07:30 PM
if you could find out what it was it would be very helpfull as we could get rid of the "GO" button. ![]()
02-21-2013 04:57 PM
any word on this ?
we still have this issue and it's very frusturating ![]()