Disable backspace back navigation because it is honestly kinda confusing

This commit is contained in:
2025-01-27 14:10:00 +01:00
parent 47f513a967
commit 5399000c8d

View File

@@ -105,11 +105,6 @@ const input_keyup = e => {
if (selected_result+1 < search_results.length) { if (selected_result+1 < search_results.length) {
selected_result++ selected_result++
} }
} else if (e.key === "Backspace" && search_term === "") {
// You can use backspace to go back to the previous page, handy if you
// searched for the wrong thing and want to go back
history.back()
e.preventDefault()
} else { } else {
search() search()
} }