diff --git a/src/ui/inserttableview.js b/src/ui/inserttableview.js index c1a10357..c0a7389e 100644 --- a/src/ui/inserttableview.js +++ b/src/ui/inserttableview.js @@ -17,6 +17,7 @@ import './../../theme/inserttable.css'; * It renders a 10x10 grid to choose inserted table size. * * @extends module:ui/view~View + * @implements module:ui/dropdown/dropdownpanelfocusable~DropdownPanelFocusable */ export default class InsertTableView extends View { /** @@ -125,6 +126,22 @@ export default class InsertTableView extends View { } ); } + /** + * @inheritDoc + */ + focus() { + // The dropdown panel expects DropdownPanelFocusable interface on views passed to dropdown panel. See #30. + // The method should be implemented while working on keyboard support for this view. See #22. + } + + /** + * @inheritDoc + */ + focusLast() { + // The dropdown panel expects DropdownPanelFocusable interface on views passed to dropdown panel. See #30. + // The method should be implemented while working on keyboard support for this view. See #22. + } + /** * Highlights grid boxes depending on rows & columns selected. * diff --git a/tests/ui/inserttableview.js b/tests/ui/inserttableview.js index 55808ca0..c512ab9b 100644 --- a/tests/ui/inserttableview.js +++ b/tests/ui/inserttableview.js @@ -54,6 +54,11 @@ describe( 'InsertTableView', () => { expect( view.items ).to.have.length( 100 ); } ); + it( 'should not throw error for DropdownPanelFocusable interface methods', () => { + expect( () => view.focus() ).to.not.throw(); + expect( () => view.focusLast() ).to.not.throw(); + } ); + describe( 'view#items bindings', () => { it( 'updates view#height & view#width on "over" event', () => { const boxView = view.items.get( 0 );