mirror of
				https://github.com/livebook-dev/livebook.git
				synced 2025-10-25 21:06:08 +08:00 
			
		
		
		
	Ignore keyboard navigation when ctrl/alt is pressed (#1788)
This commit is contained in:
		
							parent
							
								
									2ec24732bd
								
							
						
					
					
						commit
						ce3719f830
					
				
					 2 changed files with 5 additions and 3 deletions
				
			
		|  | @ -339,6 +339,8 @@ const Session = { | |||
|         cancelEvent(event); | ||||
|         this.saveNotebook(); | ||||
|         return; | ||||
|       } else if (cmd || alt) { | ||||
|         return; | ||||
|       } | ||||
|     } | ||||
| 
 | ||||
|  |  | |||
|  | @ -31,11 +31,11 @@ class KeyBuffer { | |||
|    * Immediately clears the buffer. | ||||
|    */ | ||||
|   reset() { | ||||
|     if (this.resetTimeout) { | ||||
|       clearTimeout(this.resetTimeout); | ||||
|     if (this.resetTimeoutId) { | ||||
|       clearTimeout(this.resetTimeoutId); | ||||
|     } | ||||
| 
 | ||||
|     this.clearTimeout = null; | ||||
|     this.resetTimeoutId = null; | ||||
|     this.buffer = []; | ||||
|   } | ||||
| 
 | ||||
|  |  | |||
		Loading…
	
	Add table
		
		Reference in a new issue