mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-12-17 16:51:40 +00:00
added basic stub open dialog...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
3c3fd5724c
commit
99581fedad
@ -157,6 +157,20 @@ var KEYBOARD_CONFIG = {
|
|||||||
centerRibbons()
|
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...
|
// Navigation...
|
||||||
// XXX need to cancel the animation of the prev action...
|
// XXX need to cancel the animation of the prev action...
|
||||||
Left: {
|
Left: {
|
||||||
@ -416,6 +430,7 @@ var KEYBOARD_CONFIG = {
|
|||||||
F4: doc('Open image in external software', openImage),
|
F4: doc('Open image in external software', openImage),
|
||||||
E: 'F4',
|
E: 'F4',
|
||||||
|
|
||||||
|
|
||||||
'?': doc('Show keyboard bindings',
|
'?': doc('Show keyboard bindings',
|
||||||
function(){ toggleKeyboardHelp() }),
|
function(){ toggleKeyboardHelp() }),
|
||||||
|
|
||||||
@ -426,6 +441,8 @@ var KEYBOARD_CONFIG = {
|
|||||||
P: doc('Show options',
|
P: doc('Show options',
|
||||||
function(){ toggleOptionsUI() }),
|
function(){ toggleOptionsUI() }),
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* testing the shift-key feature...
|
/* testing the shift-key feature...
|
||||||
'~': {
|
'~': {
|
||||||
default: function(){ alert('~') },
|
default: function(){ alert('~') },
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user