Open
Bug 488677
Opened 15 years ago
Updated 11 months ago
Could not cancel certain keystrokes in keydown (ctrl+f4,ctrl+tab). Keystroke handled directly by browser.
Categories
(Core :: DOM: UI Events & Focus Handling, defect)
Tracking
()
UNCONFIRMED
People
(Reporter: thorsten.dencker, Unassigned)
Details
Attachments
(1 file)
1.26 KB,
text/html
|
Details |
User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 5.1; .NET CLR 2.0.50727; .NET CLR 1.1.4322; .NET CLR 3.0.04506.30; InfoPath.1) Build Identifier: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.0.8) Gecko/2009032609 Firefox/3.0.8 Hello, it's not possible to cancel certain keystrokes like ctrl+f4 and ctrl+tab in the keydown/keypress event. I assume that they are directly handled by the browser and never reaches the keydown event. See attachement: Reproducible: Always Steps to Reproduce: HTMP page in the attachment tries to cancel all keystrokes with modifier pressed and all F-Keys. 1. Focus the input field and press e.g. ctrl+o. The event is canceled correctly and no new documnmet is opened. It's the expected behavior. 2. Open two tabs - one with the page of the attachment. Focus the input field and press ctrl+tab. Result: The tab is changed and the keystroke isn't canceled. Expected result: the tab will not be changed 3. Focus the input field. Presss ctrl+f4. Result: Tab is closed. Expected result: tab is not closed. Actual Results: see steps to reproduce Expected Results: see steps to reproduce HTML based application running in a browser needs an extended own keyboard handling (like for native applications) for power users. Therefore it's necessary to be able to cancel all keystrokes.
Reporter | ||
Comment 1•15 years ago
|
||
Add test case
Comment 2•15 years ago
|
||
Confirming the described behaviour on Window XP.
Component: General → Event Handling
Product: Firefox → Core
QA Contact: general → events
Assignee | ||
Updated•5 years ago
|
Component: Event Handling → User events and focus handling
Updated•2 years ago
|
Severity: normal → S3
Comment 3•11 months ago
|
||
I think this issue can be closed. That behaviour seems to be intentional.
(e.g. https://bugzilla.mozilla.org/show_bug.cgi?id=1437359 )
Reporter | ||
Comment 4•11 months ago
|
||
It’s funny that after 14 years someone checks this item which was reported for Firefox 3.0. Thanks for checking the item!
Unfortunately, it got common sense that browsers just consumes exclusively certain keystrokes which makes it hard to provide a consistent shortcut handling in business applications. As I agree this will not be changed anymore you can close this item.
Nobody really thought about standardizing keystrokes combination which are reserved for application developers, and which are reserved for browsers vendors.
You need to log in
before you can comment on or make changes to this bug.
Description
•