Closed Bug 305713 Opened 21 years ago Closed 20 years ago

SNAV - when page needs keyboard events, disable snav

Categories

(Minimo Graveyard :: General, defect)

WinCE
defect
Not set
major

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: dougt, Assigned: dougt)

Details

As I understand this, there isn't anyway: a) to know if a page has a keypress handler. b) to create sIDOMKeyListener such that content gets the event before the nsIDOMKeyListener. In fact, you can set up a page which overrides every control sequence such that all application menus are inaccessible via the keyboard. I think the short term solution is to ensure that the keys that spatial navigation use do not intersect much with the keys that webpages commonly use.
Status: NEW → ASSIGNED
Target Milestone: --- → Future
Find as you type had to deal with this as well. We check to see if preventDefault was called on the key event, and we make sure we get it after the page. Many pages want to use alphanumeric keys for their own purposes. Check typeaheadfind.cpp
very cool! Is this the code: http://lxr.mozilla.org/seamonkey/source/extensions/typeaheadfind/src/nsTypeAheadFind.cpp#688 lets move this out of the dark hole know as future. tm=010
Target Milestone: Future → 0.010
Yeah also look at http://lxr.mozilla.org/seamonkey/source/extensions/typeaheadfind/src/nsTypeAheadFind.cpp#2334 There's also a method to remove the listeners. We have to attach the keypress listener such that we get it at the right time.
Fix checked in. webapps that do not want to use the same keys as snav need to call e.preventDefault() on their keypress event.
Status: ASSIGNED → RESOLVED
Closed: 20 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.