Tagger: backspace to go back

This commit is contained in:
James Magahern
2022-06-03 13:14:40 -07:00
parent ebc6f4ad6a
commit f6dcc48e46

View File

@@ -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);
}