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