mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-03-11 21:27:05 +00:00
bind backspace key to back button
This commit is contained in:
parent
292f4d59c6
commit
9871e438e8
1 changed files with 8 additions and 0 deletions
|
|
@ -12,6 +12,14 @@ function KeyboardNavigation() {
|
|||
if (tab) {
|
||||
event.preventDefault();
|
||||
window.location = tab.href;
|
||||
return;
|
||||
}
|
||||
|
||||
if (event.target.tag !== 'INPUT') {
|
||||
if (event.key === 'Backspace') {
|
||||
window.history.back();
|
||||
return;
|
||||
}
|
||||
}
|
||||
}
|
||||
function start() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue