Allow arrow keys for navigation
This commit is contained in:
parent
b7db49d88c
commit
3a0357693c
11
src/main.rs
11
src/main.rs
@ -656,6 +656,17 @@ fn handle_relative_connection(
|
||||
updateSection();
|
||||
}
|
||||
}
|
||||
|
||||
document.addEventListener('keydown', (e) => {
|
||||
switch(e.keyCode) {
|
||||
case 37:
|
||||
prev();
|
||||
break;
|
||||
case 39:
|
||||
next();
|
||||
break;
|
||||
}
|
||||
});
|
||||
"))
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user