|
|
@@ -439,7 +439,13 @@ describe( 'Link', () => {
|
|
|
describe( 'keyboard support', () => {
|
|
|
it( 'should show the #_balloon with selected #formView on `CTRL+K` keystroke', () => {
|
|
|
const spy = testUtils.sinon.stub( linkFeature, '_showPanel', () => {} );
|
|
|
+ const command = editor.commands.get( 'link' );
|
|
|
+
|
|
|
+ command.isEnabled = false;
|
|
|
+ editor.keystrokes.press( { keyCode: keyCodes.k, ctrlKey: true } );
|
|
|
+ sinon.assert.notCalled( spy );
|
|
|
|
|
|
+ command.isEnabled = true;
|
|
|
editor.keystrokes.press( { keyCode: keyCodes.k, ctrlKey: true } );
|
|
|
sinon.assert.calledWithExactly( spy, true );
|
|
|
} );
|