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