Add history backwards/forwards buttons, fixes #94

This commit is contained in:
azivner
2018-05-26 22:54:06 -04:00
parent 7ad9f7b129
commit a30734f1bc
5 changed files with 19 additions and 0 deletions

View File

@@ -45,6 +45,10 @@ function registerEntrypoints() {
utils.bindShortcut('alt+o', sqlConsoleDialog.showDialog);
if (utils.isElectron()) {
$("#history-navigation").show();
$("#history-back-button").click(window.history.back);
$("#history-forward-button").click(window.history.forward);
utils.bindShortcut('alt+left', window.history.back);
utils.bindShortcut('alt+right', window.history.forward);
}