Przeglądaj źródła

Remove dead code.

Maciej Gołaszewski 6 lat temu
rodzic
commit
f89d9cfc1c
1 zmienionych plików z 0 dodań i 13 usunięć
  1. 0 13
      packages/ckeditor5-table/src/tableselection.js

+ 0 - 13
packages/ckeditor5-table/src/tableselection.js

@@ -52,19 +52,6 @@ export default class TableSelection extends Plugin {
 
 		editor.editing.view.addObserver( MouseSelectionObserver );
 
-		this.listenTo( viewDocument, 'keydown', () => {
-			if ( this.isSelectingAndSomethingElse ) {
-				this.stopSelection();
-				const tableCell = this._startElement;
-				this.clearSelection();
-
-				editor.model.change( writer => {
-					// Select the contents of table cell.
-					writer.setSelection( tableCell, 'in' );
-				} );
-			}
-		} );
-
 		this.listenTo( viewDocument, 'mousedown', ( eventInfo, domEventData ) => {
 			const tableCell = getModelTableCellFromViewEvent( domEventData, this.editor );