mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-31 11:20:09 +00:00 
			
		
		
		
	reorganized the controls slightly...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									107f3e5b27
								
							
						
					
					
						commit
						a7b557a97e
					
				| @ -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 : --> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user