From b4e7e2f888008ad031982c80a92b8b10c143c256 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 21 Sep 2013 06:44:22 +0400 Subject: [PATCH] disabled entering crop modes from single image mode (needs more thought)... Signed-off-by: Alex A. Naanou --- ui/keybindings.js | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/ui/keybindings.js b/ui/keybindings.js index 46ebea1e..b294b3ff 100755 --- a/ui/keybindings.js +++ b/ui/keybindings.js @@ -279,6 +279,22 @@ var KEYBOARD_CONFIG = { '#8': doc('Fit eight images', function(){ fitNImages(8) }), '#9': doc('Fit nine images', function(){ fitNImages(9) }), + // cropping... + F2: { + shift: doc('Crop marked only images', + function(){ + toggleMarkedOnlyView('on') + // prevent the default from the main mode from + // getting called... + return false + }), + }, + + F3: doc('Crop single ribbon', + function(){ + event.preventDefault() + toggleSingleRibbonMode('on') + }), }, @@ -591,6 +607,13 @@ var KEYBOARD_CONFIG = { }, + F2: doc('Toggle mark visibility', + function(){ toggleMarkesView() }), + // XXX should we be able to toggle crop modes from single image mode??? + // ...if yes, then remove the F2 & F3 definitions form ribbon + // mode... + // one way to go is to exit single-image-mode on s-f2 or f3... + /* F2: { default: doc('Toggle mark visibility', function(){ toggleMarkesView() }), @@ -605,6 +628,7 @@ var KEYBOARD_CONFIG = { event.preventDefault() toggleSingleRibbonMode('on') }), + */ E: doc('Open image in external software', openImage), // XXX make F4 a default editor and E a default viewer...