some tweaking...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2017-09-08 22:29:45 +03:00
parent f2019c85aa
commit f0a032979c
4 changed files with 16 additions and 3 deletions

View File

@ -1720,7 +1720,8 @@ module.CropActions = actions.Actions({
// crop edit actions...
// XXX do we need this???
removeFromCrop: ['Crop/Remove from crop',
// XXX undo...
removeFromCrop: ['Crop|Image/Remove from crop',
{browseMode: 'uncrop'},
function(gids){
var that = this
@ -1763,7 +1764,9 @@ module.CropActions = actions.Actions({
// restore correct focus...
focus
&& this.focusImage(this.direction == 'left' ? 'prev' : 'next')
&& this.focusImage(
data.getImage(this.direction == 'left' ? 'before' : 'after')
|| data.getImage(this.direction == 'left' ? 'after' : 'before'))
}]
})

View File

@ -555,7 +555,7 @@ var CollectionActions = actions.Actions({
this.saveCollection(collection)
}
}],
uncollect: ['Collections|Image/$Uncollect image',
uncollect: ['Collections|Image/Remove from collection',
{browseMode: function(){ return !this.collection && 'disabled' }},
function(gids, collection){
collection = collection || this.collection

View File

@ -124,6 +124,7 @@ module.GLOBAL_KEYBOARD = {
drop: [
'Esc',
'Del',
],
Esc: 'uncrop',
@ -141,6 +142,10 @@ module.GLOBAL_KEYBOARD = {
'Collection': {
pattern: '.collection-mode',
drop: [
'Esc',
'Del',
],
Esc: 'loadCollection: "ALL" -- Load all images',

View File

@ -1136,6 +1136,8 @@ var BrowseActionsActions = actions.Actions({
'99:$Edit',
'$Navigate',
'$Image',
'Image/-90:---',
'Image/-90:.*remove.*',
'$Ribbon',
'$Crop',
'Crop/80:Crop $marked images',
@ -1173,6 +1175,9 @@ var BrowseActionsActions = actions.Actions({
'Crop/-70:---',
//*/
'Crop/-70:---',
'Crop/-70:.*remove.*',
'Crop/-80:Uncrop and keep crop image order',
'Crop/-81:Uncrop all',
'Crop/-82:$Uncrop',