From 99581fedadd204feee8197acda44eff62068c8b3 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sun, 2 Jun 2013 18:29:56 +0400 Subject: [PATCH] added basic stub open dialog... Signed-off-by: Alex A. Naanou --- ui/keybindings.js | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/ui/keybindings.js b/ui/keybindings.js index 04cf8fd6..e42eb4ff 100755 --- a/ui/keybindings.js +++ b/ui/keybindings.js @@ -157,6 +157,20 @@ var KEYBOARD_CONFIG = { centerRibbons() }), + + // Basics... + // XXX STUB: use a real path browser... + O: doc('Open a directory path', + function(){ + var path = prompt('Path to open', BASE_URL) + if(path == null){ + return + } + path = path.trim() + loadDir(path) + }), + + // Navigation... // XXX need to cancel the animation of the prev action... Left: { @@ -416,6 +430,7 @@ var KEYBOARD_CONFIG = { F4: doc('Open image in external software', openImage), E: 'F4', + '?': doc('Show keyboard bindings', function(){ toggleKeyboardHelp() }), @@ -426,6 +441,8 @@ var KEYBOARD_CONFIG = { P: doc('Show options', function(){ toggleOptionsUI() }), + + /* testing the shift-key feature... '~': { default: function(){ alert('~') },