Browse Source

Show panel on Ctrl+l keystroke.

Oskar Wrobel 9 years ago
parent
commit
181ede5fee
1 changed files with 3 additions and 0 deletions
  1. 3 0
      packages/ckeditor5-link/src/link.js

+ 3 - 0
packages/ckeditor5-link/src/link.js

@@ -55,6 +55,9 @@ export default class Link extends Feature {
 				this._attachPanelToElement();
 			}
 		} );
+
+		// Handle Ctrl+l keystroke and show panel.
+		editor.keystrokes.set( 'CTRL+l', () => this._attachPanelToElement() );
 	}
 
 	_createToolbarLinkButton() {