TagSpaces is an offline, open source, document manager with tagging support
adding hotkeys for reloading, fullscreen and devtool in node-webkit
Ilianf44faa09e3cf
diff --git a/data/js/core.api.js b/data/js/core.api.jsindex a5ddc45ef..3ca03db55 100644--- a/data/js/core.api.js+++ b/data/js/core.api.js@@ -96,6 +96,19 @@ define(function(require, exports, module) {function initKeyBindings() {// TODO handle documents opened for editing// $(document).bind('keyup', 'esc', closeFileViewer);+ if(isNode) {+ var win = gui.Window.get();+ // if (PRODUCTION == "true") {+ $(document).bind('keyup', 'F12', function() {+ win.showDevTools();+ });+ $(document).bind('keyup', 'F5', function() {+ win.reloadIgnoringCache();+ });+ $(document).bind('keyup', 'F11', function() {+ win.toggleFullscreen();+ });+ }}function checkForNewVersion() {@@ -491,6 +504,8 @@ define(function(require, exports, module) {exports.showDialogTagCreate = tsTagsUI.showDialogTagCreate;exports.showDialogEditTagGroup = tsTagsUI.showDialogEditTagGroup;exports.showDialogTagGroupCreate = tsTagsUI.showDialogTagGroupCreate;+ exports.calculatedTags = tsTagsUI.calculatedTags;+ exports.generateTagGroups = tsTagsUI.generateTagGroups;// Proxying functions from directoriesUIexports.updateSubDirs = tsDirectoriesUI.updateSubDirs;