Skip to content

Commit

Permalink
Bug 1294155 - Don't disable keyboard shortcuts when input type=checkb…
Browse files Browse the repository at this point in the history
…ox|radio have focus.
  • Loading branch information
jgraham committed Aug 11, 2016
1 parent c95a59b commit 90782ca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion ui/js/controllers/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,8 @@ treeherderApp.controller('MainCtrl', [
return override;
}
}
if (element.tagName === 'INPUT' ||
if ((element.tagName === 'INPUT' &&
element.type !== "radio" && element.type !== "checkbox") ||
element.tagName === 'SELECT' ||
element.tagName === 'TEXTAREA' ||
element.isContentEditable || ev.keyCode === 16) {
Expand Down

0 comments on commit 90782ca

Please sign in to comment.