mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-11-04 05:10:07 +00:00 
			
		
		
		
	tested local keyboard handling...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									1e8799042a
								
							
						
					
					
						commit
						ba76402c35
					
				@ -370,7 +370,8 @@ var KB = {
 | 
				
			|||||||
	'*':{
 | 
						'*':{
 | 
				
			||||||
		F5: function(){ window.location.reload() },
 | 
							F5: function(){ window.location.reload() },
 | 
				
			||||||
	},
 | 
						},
 | 
				
			||||||
	'.browse:focus':{
 | 
						//'.browse:focus':{
 | 
				
			||||||
 | 
						'.browse':{
 | 
				
			||||||
		Up: prev,
 | 
							Up: prev,
 | 
				
			||||||
		Backspace: 'Up',
 | 
							Backspace: 'Up',
 | 
				
			||||||
		Down: next,
 | 
							Down: next,
 | 
				
			||||||
@ -387,7 +388,8 @@ requirejs(['../lib/keyboard'], function(m){
 | 
				
			|||||||
	keyboard = m
 | 
						keyboard = m
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// setup base keyboard for devel, in case something breaks...
 | 
						// setup base keyboard for devel, in case something breaks...
 | 
				
			||||||
	$(document)
 | 
						//$(document)
 | 
				
			||||||
 | 
						$('.browse')
 | 
				
			||||||
		.keydown(
 | 
							.keydown(
 | 
				
			||||||
			keyboard.makeKeyboardHandler(
 | 
								keyboard.makeKeyboardHandler(
 | 
				
			||||||
				KB,
 | 
									KB,
 | 
				
			||||||
@ -467,3 +469,4 @@ $(function(){
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
</body>
 | 
					</body>
 | 
				
			||||||
</html>
 | 
					</html>
 | 
				
			||||||
 | 
					<!-- vim:set ts=4 sw=4 : -->
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user