added basic stub open dialog...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2013-06-02 18:29:56 +04:00
parent 3c3fd5724c
commit 99581fedad

View File

@ -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('~') },