From f0df4183c7cc3306546ab34c33b9a539412cd9a8 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Wed, 6 Sep 2017 06:37:40 +0300 Subject: [PATCH] bugfix + F8 to add image to collection... Signed-off-by: Alex A. Naanou --- ui (gen4)/features/collections.js | 4 +--- ui (gen4)/features/keyboard.js | 1 + 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/ui (gen4)/features/collections.js b/ui (gen4)/features/collections.js index c557c949..7fd145e5 100755 --- a/ui (gen4)/features/collections.js +++ b/ui (gen4)/features/collections.js @@ -429,9 +429,7 @@ var CollectionActions = actions.Actions({ // NOTE: we do not need to care about tags here as they // will get overwritten on load... state.data = (mode == 'empty' ? - // XXX should this be null??? - //(new this.data.constructor()) - null + (new this.data.constructor()) : mode == 'base' && this.crop_stack ? (this.crop_stack[0] || this.data.clone()) : mode == 'crop' ? diff --git a/ui (gen4)/features/keyboard.js b/ui (gen4)/features/keyboard.js index ce33c3e4..a7cbe4db 100755 --- a/ui (gen4)/features/keyboard.js +++ b/ui (gen4)/features/keyboard.js @@ -373,6 +373,7 @@ module.GLOBAL_KEYBOARD = { //alt_C: 'browseCollections', alt_C: 'browseActions: "/Collections/" -- Collections menu...', shift_O: 'browseCollections', + F8: 'addToCollection', // metadata...