mirror of
				https://github.com/zadam/trilium.git
				synced 2025-10-30 19:19:03 +01:00 
			
		
		
		
	
		
			
				
	
	
		
			23 lines
		
	
	
		
			487 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			487 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
| import { Plugin } from 'ckeditor5';
 | |
| import KbdEditing from './kbdediting.js';
 | |
| import KbdUI from './kbdui.js';
 | |
| 
 | |
| /**
 | |
|  * The keyboard shortcut feature.
 | |
|  *
 | |
|  * Provides a way to semantically mark keyboard shortcuts/hotkeys in the content.
 | |
|  *
 | |
|  * This is a "glue" plugin which loads the `KbdEditing` and `KbdUI` plugins.
 | |
|  */
 | |
| export default class Kbd extends Plugin {
 | |
| 
 | |
| 	static get requires() {
 | |
| 		return [ KbdEditing, KbdUI ];
 | |
| 	}
 | |
| 
 | |
| 	public static get pluginName() {
 | |
| 		return 'Kbd' as const;
 | |
| 	}
 | |
| 
 | |
| }
 | 
