minor refactring + notes...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2016-12-31 19:51:16 +03:00
parent 28026c02bf
commit e1d75f775c
2 changed files with 9 additions and 6 deletions

View File

@ -545,6 +545,8 @@ actions.Actions({
}],
// NOTE: we do not need undo here because it will be handled by
// 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',
function(target){
this.data.newRibbon(target)
@ -1286,7 +1288,7 @@ module.Journal = core.ImageGridFeatures.Feature({
// undoing something, and after some actions doing a
// .redoLast(..)
// XXX this is not ready for production...
undoLast: ['Edit/Undo last',
undo: ['Edit/Undo',
{browseMode: function(){
return (this.journal && this.journal.length > 0) || 'disabled' }},
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(){
return (this.rjournal && this.rjournal.length > 0) || 'disabled' }},
function(){

View File

@ -376,12 +376,12 @@ module.GLOBAL_KEYBOARD = {
// XXX still experimental...
U: {
default: 'undoLast',
shift: 'redoLast',
default: 'undo',
shift: 'redo',
},
Z: {
ctrl: 'undoLast',
'ctrl+shift': 'redoLast',
ctrl: 'undo',
'ctrl+shift': 'redo',
},
G: {