Closed
Bug 490047
Opened 16 years ago
Closed 9 years ago
findbar widget should call preventDefault() for VK_RETURN keypress event
Categories
(Core :: XUL, defect)
Core
XUL
Tracking
()
RESOLVED
WONTFIX
People
(Reporter: jwkbugzilla, Unassigned)
Details
In a dialog, the default action on VK_RETURN is to accept (close) the dialog. Currently, this action is also triggered if the user presses VK_RETURN inside the findbar widget - which is supposed to trigger "Find again" instead. In Adblock Plus I had to add this code to work around:
E("findbar").addEventListener("keypress", function(event)
{
if (event.keyCode == KeyEvent.DOM_VK_RETURN)
event.preventDefault();
}, false);
It would be better if the widget would call event.preventDefault() itself instead - for example in _handleEnter() method.
Reporter | ||
Comment 1•9 years ago
|
||
It seems that `<findbar>` isn't meant to be a reusable widget, despite being in Toolkit.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → WONTFIX
Comment 2•7 years ago
|
||
Moving to Core:XUL per https://bugzilla.mozilla.org/show_bug.cgi?id=1455336
Component: XP Toolkit/Widgets: XUL → XUL
You need to log in
before you can comment on or make changes to this bug.
Description
•