Skip to content

Commit 68fc036

Browse files
authored
Merge pull request #75 from ArkhamCookie/focus-shortcuts
fix: fix shortcuts being actived whenever using the search bar
2 parents 3df31a9 + ab960d9 commit 68fc036

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/home.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@
200200
{% if !bookmark.shortcut.is_empty() %}
201201
<script>
202202
function handleShortcut(event) {
203-
if (event.key === "{{bookmark.shortcut}}") {
203+
if (event.key === "{{bookmark.shortcut}}" && document.activeElement.id !== "search-input") {
204204
event.preventDefault();
205205
window.open("{{bookmark.link}}")
206206
}

0 commit comments

Comments
 (0)