mirror of
				https://github.com/RGBCube/serenity
				synced 2025-10-31 09:42:45 +00:00 
			
		
		
		
	VirtualConsole: Only consume data from key-down events
This commit is contained in:
		
							parent
							
								
									dffdd5545a
								
							
						
					
					
						commit
						ce8387d1ed
					
				
					 1 changed files with 2 additions and 0 deletions
				
			
		|  | @ -494,6 +494,8 @@ void VirtualConsole::on_char(u8 ch) | |||
| 
 | ||||
| void VirtualConsole::on_key_pressed(KeyboardDevice::Event key) | ||||
| { | ||||
|     if (!key.is_press()) | ||||
|         return; | ||||
|     if (key.ctrl()) { | ||||
|         if (key.character >= 'a' && key.character <= 'z') { | ||||
|             emit(key.character - 'a' + 1); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Conrad Pankoff
						Conrad Pankoff