Skip to content

Commit

Permalink
v3 Enable enter on search #3176
Browse files Browse the repository at this point in the history
  • Loading branch information
AishwaryaAgr authored and AishwaryaAgr committed Oct 1, 2024
1 parent 6e3dfe0 commit 64b349e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Extensions/keyboardShortcut.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,8 +396,8 @@ function VimBind() {
return this;
}

document.addEventListener('keydown', (event) => {
if (event.key === 'Enter' && event.target.tagName === 'INPUT') {
document.addEventListener("keydown", (event) => {
if (event.key === "Enter" && event.target.tagName === "INPUT") {
event.preventDefault();
event.target.blur();
document.body.focus();
Expand Down

0 comments on commit 64b349e

Please sign in to comment.