mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-10-30 19:00:09 +00:00 
			
		
		
		
	fixed a bug in keyboard.js...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									c38bb8dd50
								
							
						
					
					
						commit
						209f92b1bf
					
				
							
								
								
									
										12
									
								
								ui/TODO.otl
									
									
									
									
									
								
							
							
						
						
									
										12
									
								
								ui/TODO.otl
									
									
									
									
									
								
							| @ -213,6 +213,18 @@ Roadmap | |||||||
| 			[_] caching config | 			[_] caching config | ||||||
| 		[_] BUG: BASE_URL seems to gain a new trailing '/' on each save... | 		[_] BUG: BASE_URL seems to gain a new trailing '/' on each save... | ||||||
| 		| low priority as this does not affect anything... | 		| low priority as this does not affect anything... | ||||||
|  | 		[X] BUG: keyboard.js, some combinations resolve problems... | ||||||
|  | 		| in current help shows E, F4, alt-F4 as "Open image in ..." | ||||||
|  | 		| 	- E and F4 work OK | ||||||
|  | 		| 	- alt-F4 both close the viewer (default) and open an image. | ||||||
|  | 		| | ||||||
|  | 		| Example: | ||||||
|  | 		| 	E: doc('Open image in external software', openImage), | ||||||
|  | 		|	F4: { | ||||||
|  | 		|			default: 'E', | ||||||
|  | 		|			alt: doc('Close viewer'), | ||||||
|  | 		|		}, | ||||||
|  | 		| | ||||||
| 		[X] reverse ribbons... | 		[X] reverse ribbons... | ||||||
| 		[X] slideshow mode... | 		[X] slideshow mode... | ||||||
| 		[X] default STUB image... | 		[X] default STUB image... | ||||||
|  | |||||||
| @ -213,8 +213,12 @@ function getKeyHandlers(key, modifiers, keybindings, modes, shifted_keys){ | |||||||
| 				if(modifiers == '?'){ | 				if(modifiers == '?'){ | ||||||
| 					break | 					break | ||||||
| 				} | 				} | ||||||
|  | 				if(modifiers in handler){ | ||||||
| 					if(typeof(handler[modifiers]) == typeof('str')){ | 					if(typeof(handler[modifiers]) == typeof('str')){ | ||||||
| 						handler = handler[modifiers] | 						handler = handler[modifiers] | ||||||
|  | 					} else { | ||||||
|  | 						break | ||||||
|  | 					} | ||||||
| 				} else if(typeof(handler['default']) == typeof('str')){ | 				} else if(typeof(handler['default']) == typeof('str')){ | ||||||
| 					handler = handler['default'] | 					handler = handler['default'] | ||||||
| 				} else { | 				} else { | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user