remove deprecated property in KeyboardEvent
This commit is contained in:
		
							parent
							
								
									eff8d9a83e
								
							
						
					
					
						commit
						5ac1f60ece
					
				
					 10 changed files with 32 additions and 87 deletions
				
			
		|  | @ -1,21 +0,0 @@ | |||
| const asKeymapChars = (keys) => { | ||||
|   return keys.map((k) => { | ||||
|     let c = String.fromCharCode(k.code); | ||||
|     if (k.ctrl) { | ||||
|       return '<C-' + c.toUpperCase() + '>'; | ||||
|     } | ||||
|     return c; | ||||
|   }).join(''); | ||||
| }; | ||||
| 
 | ||||
| const asCaretChars = (keys) => { | ||||
|   return keys.map((k) => { | ||||
|     let c = String.fromCharCode(k.code); | ||||
|     if (k.ctrl) { | ||||
|       return '^' + c.toUpperCase(); | ||||
|     } | ||||
|     return c; | ||||
|   }).join(''); | ||||
| }; | ||||
| 
 | ||||
| export { asKeymapChars, asCaretChars }; | ||||
		Reference in a new issue