mirror of
				https://github.com/tmux/tmux.git
				synced 2025-11-04 00:56:10 +00:00 
			
		
		
		
	Report shifted keys like S-A as A not as S-A in mode 1 extended keys,
from Stanislav Kljuhhin.
This commit is contained in:
		@@ -553,6 +553,10 @@ input_key_mode1(struct bufferevent *bev, key_code key)
 | 
				
			|||||||
	     (onlykey >= '@' && onlykey <= '~')))
 | 
						     (onlykey >= '@' && onlykey <= '~')))
 | 
				
			||||||
		return (input_key_vt10x(bev, key));
 | 
							return (input_key_vt10x(bev, key));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
						/* Avoid reporting A as Shift-A, which is not expected in mode 1. */
 | 
				
			||||||
 | 
						if ((key & KEYC_MASK_MODIFIERS) == KEYC_SHIFT)
 | 
				
			||||||
 | 
							return (input_key_vt10x(bev, key));
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	/*
 | 
						/*
 | 
				
			||||||
	 * A regular key + Meta. In the absence of a standard to back this, we
 | 
						 * A regular key + Meta. In the absence of a standard to back this, we
 | 
				
			||||||
	 * mimic what iTerm 2 does.
 | 
						 * mimic what iTerm 2 does.
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user