mirror of
https://github.com/flynx/ImageGrid.git
synced 2025-10-29 10:20:08 +00:00
minor refactring + notes...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
parent
28026c02bf
commit
e1d75f775c
@ -545,6 +545,8 @@ actions.Actions({
|
|||||||
}],
|
}],
|
||||||
// NOTE: we do not need undo here because it will be handled by
|
// NOTE: we do not need undo here because it will be handled by
|
||||||
// corresponding normal shift operations...
|
// corresponding normal shift operations...
|
||||||
|
// XXX .undoLast(..) on these for some reason skips...
|
||||||
|
// ...e.g. two shifts are undone with three calls to .undoLast()...
|
||||||
shiftImageUpNewRibbon: ['Edit/Shift image up to a new empty ribbon',
|
shiftImageUpNewRibbon: ['Edit/Shift image up to a new empty ribbon',
|
||||||
function(target){
|
function(target){
|
||||||
this.data.newRibbon(target)
|
this.data.newRibbon(target)
|
||||||
@ -1286,7 +1288,7 @@ module.Journal = core.ImageGridFeatures.Feature({
|
|||||||
// undoing something, and after some actions doing a
|
// undoing something, and after some actions doing a
|
||||||
// .redoLast(..)
|
// .redoLast(..)
|
||||||
// XXX this is not ready for production...
|
// XXX this is not ready for production...
|
||||||
undoLast: ['Edit/Undo last',
|
undo: ['Edit/Undo',
|
||||||
{browseMode: function(){
|
{browseMode: function(){
|
||||||
return (this.journal && this.journal.length > 0) || 'disabled' }},
|
return (this.journal && this.journal.length > 0) || 'disabled' }},
|
||||||
function(){
|
function(){
|
||||||
@ -1321,7 +1323,8 @@ module.Journal = core.ImageGridFeatures.Feature({
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}],
|
}],
|
||||||
redoLast: ['Edit/Redo last',
|
// XXX this is not final -- needs careful revision...
|
||||||
|
redo: ['Edit/Redo last',
|
||||||
{browseMode: function(){
|
{browseMode: function(){
|
||||||
return (this.rjournal && this.rjournal.length > 0) || 'disabled' }},
|
return (this.rjournal && this.rjournal.length > 0) || 'disabled' }},
|
||||||
function(){
|
function(){
|
||||||
|
|||||||
@ -376,12 +376,12 @@ module.GLOBAL_KEYBOARD = {
|
|||||||
|
|
||||||
// XXX still experimental...
|
// XXX still experimental...
|
||||||
U: {
|
U: {
|
||||||
default: 'undoLast',
|
default: 'undo',
|
||||||
shift: 'redoLast',
|
shift: 'redo',
|
||||||
},
|
},
|
||||||
Z: {
|
Z: {
|
||||||
ctrl: 'undoLast',
|
ctrl: 'undo',
|
||||||
'ctrl+shift': 'redoLast',
|
'ctrl+shift': 'redo',
|
||||||
},
|
},
|
||||||
|
|
||||||
G: {
|
G: {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user