mirror of
				https://github.com/flynx/ImageGrid.git
				synced 2025-11-03 21:00:14 +00:00 
			
		
		
		
	minor tweaking...
Signed-off-by: Alex A. Naanou <alex.nanou@gmail.com>
This commit is contained in:
		
							parent
							
								
									9489f9023e
								
							
						
					
					
						commit
						2d822be37d
					
				@ -62,7 +62,10 @@ var overlay = require('lib/widget/overlay')
 | 
				
			|||||||
/*********************************************************************/
 | 
					/*********************************************************************/
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// XXX move this to config...
 | 
					// XXX move this to config...
 | 
				
			||||||
module.MAX_KEY_REPEAT_RATE = 100
 | 
					// NOTE: setting this here (and only here) to -1 or null will desable 
 | 
				
			||||||
 | 
					// 		key dropping...
 | 
				
			||||||
 | 
					// NOTE: keeping this disabled is recommended for development...
 | 
				
			||||||
 | 
					module.MAX_KEY_REPEAT_RATE = 0 //100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// XXX add this to the global doc...
 | 
					// XXX add this to the global doc...
 | 
				
			||||||
module.GLOBAL_KEYBOARD = {
 | 
					module.GLOBAL_KEYBOARD = {
 | 
				
			||||||
@ -278,6 +281,17 @@ $(function(){
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// setup base keyboard for devel, in case something breaks...
 | 
						// setup base keyboard for devel, in case something breaks...
 | 
				
			||||||
 | 
						if(module.MAX_KEY_REPEAT_RATE < 0 || module.MAX_KEY_REPEAT_RATE == null){
 | 
				
			||||||
 | 
							$(document)
 | 
				
			||||||
 | 
								.keydown(
 | 
				
			||||||
 | 
									keyboard.makeKeyboardHandler(
 | 
				
			||||||
 | 
										module.GLOBAL_KEYBOARD,
 | 
				
			||||||
 | 
										function(k){
 | 
				
			||||||
 | 
											window.DEBUG && console.log(k)
 | 
				
			||||||
 | 
										}, 
 | 
				
			||||||
 | 
										a))
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						} else {
 | 
				
			||||||
		$(document)
 | 
							$(document)
 | 
				
			||||||
			.keydown(
 | 
								.keydown(
 | 
				
			||||||
				keyboard.dropRepeatingkeys(
 | 
									keyboard.dropRepeatingkeys(
 | 
				
			||||||
@ -291,6 +305,7 @@ $(function(){
 | 
				
			|||||||
						// XXX get this from config...
 | 
											// XXX get this from config...
 | 
				
			||||||
						return module.MAX_KEY_REPEAT_RATE
 | 
											return module.MAX_KEY_REPEAT_RATE
 | 
				
			||||||
					}))
 | 
										}))
 | 
				
			||||||
 | 
						}
 | 
				
			||||||
})
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user