Skip to content

Commit

Permalink
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 0f89b17 commit 6e3dfe0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Extensions/keyboardShortcut.js
Original file line number Diff line number Diff line change
Expand Up @@ -396,7 +396,7 @@ function VimBind() {
return this;
}

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

0 comments on commit 6e3dfe0

Please sign in to comment.