mirror of
				https://github.com/nmasur/dotfiles
				synced 2025-11-04 11:43:16 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			24 lines
		
	
	
		
			341 B
		
	
	
	
		
			AutoHotkey
		
	
	
	
	
	
			
		
		
	
	
			24 lines
		
	
	
		
			341 B
		
	
	
	
		
			AutoHotkey
		
	
	
	
	
	
#Requires AutoHotkey v2.0
 | 
						|
#SingleInstance
 | 
						|
 | 
						|
ih := InputHook("B L1 T1", "{Esc}")
 | 
						|
 | 
						|
*Ctrl::
 | 
						|
{
 | 
						|
	ih.Start()
 | 
						|
	reason := ih.Wait()
 | 
						|
	if (reason = "Stopped") {
 | 
						|
		Send "{Esc}"
 | 
						|
	} else if (reason = "Max") {
 | 
						|
		Send "{Blind}{Ctrl down}" ih.Input
 | 
						|
	}
 | 
						|
}
 | 
						|
 | 
						|
*Ctrl up::
 | 
						|
{
 | 
						|
	if (ih.InProgress) {
 | 
						|
		ih.Stop()
 | 
						|
	} else {
 | 
						|
		Send "{Ctrl up}"
 | 
						|
	}
 | 
						|
} |