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)

defect
Not set
normal

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.
No longer blocks: abp
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
Component: XP Toolkit/Widgets: XUL → XUL
You need to log in before you can comment on or make changes to this bug.