reorganized the controls slightly...

Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
Alex A. Naanou 2012-06-07 03:12:39 +04:00
parent 107f3e5b27
commit a7b557a97e

View File

@ -106,22 +106,22 @@ function handleKeys(event){
: (fn(code, keys.lastKeys) >= 0) ? lastImage() : (fn(code, keys.lastKeys) >= 0) ? lastImage()
: (fn(code, keys.promoteKeys) >= 0) ? function(){ : (fn(code, keys.promoteKeys) >= 0) ? function(){
if(event.shiftKey){ if(event.shiftKey){
focusBelowRibbon() if(event.ctrlKey){
} else if(event.ctrlKey){ createRibbonBelow()
createRibbonBelow() }
promoteImage() promoteImage()
} else { } else {
promoteImage() focusBelowRibbon()
} }
}() }()
: (fn(code, keys.demoteKeys) >= 0) ? function(){ : (fn(code, keys.demoteKeys) >= 0) ? function(){
if(event.shiftKey){ if(event.shiftKey){
focusAboveRibbon() if(event.ctrlKey){
} else if(event.ctrlKey){ createRibbonAbove()
createRibbonAbove() }
demoteImage() demoteImage()
} else { } else {
demoteImage() focusAboveRibbon()
} }
}() }()
: (fn(code, keys.toggleRibbonView) >= 0) ? toggleRibbonView() : (fn(code, keys.toggleRibbonView) >= 0) ? toggleRibbonView()
@ -500,14 +500,14 @@ function demoteImage(){
<br><br> <br><br>
<button onclick="demoteImage()">demote image (up)</button><br> <button onclick="demoteImage()">demote image (shift-up)</button><br>
<button onclick="promoteImage()">promote image (down)</button><br> <button onclick="promoteImage()">promote image (shift-down)</button><br>
NOTE: ctrl-up / ctrl-down will demote / promote an image to a new empty ribbon (default if no ribbon exists) NOTE: ctrl-shift-up / ctrl-shift-down will demote / promote an image to a new empty ribbon (the default if no ribbon exists)
<br><br> <br><br>
<button onclick="focusAboveRibbon()">focus above ribbon (shift-up)</button><br> <button onclick="focusAboveRibbon()">focus above ribbon (up)</button><br>
<button onclick="focusBelowRibbon()">focus below ribbon (shift-down)</button> <button onclick="focusBelowRibbon()">focus below ribbon (down)</button>
<!-- vim:set ts=4 sw=4 nowrap : --> <!-- vim:set ts=4 sw=4 nowrap : -->