Skip to content
This repository has been archived by the owner on Sep 6, 2021. It is now read-only.

Fix #11416: Enter key behaviour on Extension Manager Search Box #12839

Merged
merged 2 commits into from
Oct 18, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion src/widgets/Dialogs.js
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,9 @@ define(function (require, exports, module) {
stopEvent();
if (e.target.tagName === "BUTTON") {
this.find(e.target).click();
} else {
} else if (e.target.tagName !== "INPUT") {
// If the target element is not BUTTON or INPUT, click the primary button
// We're making an exception for INPUT element because of this issue: GH-11416
$primaryBtn.click();
}
} else if (e.which === KeyEvent.DOM_VK_SPACE) {
Expand Down