Tagger: backspace to go back
This commit is contained in:
@@ -338,6 +338,12 @@ const ScrollDirection = {
|
||||
if (event.key == " " && tagger.isTagged) {
|
||||
tagger.untagDocument();
|
||||
event.preventDefault();
|
||||
} else if (event.key == "Backspace") {
|
||||
if (!event.shiftKey) {
|
||||
window.history.back();
|
||||
} else {
|
||||
window.history.forward();
|
||||
}
|
||||
} else {
|
||||
scroller.setScrollVelocity(0, 0);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user