This repository has been archived on 2020-04-04. You can view files and clone it, but you cannot make any changes to it's state, such as pushing and creating new issues, pull requests or comments.
Vim-Vixen/src/content/usecases/FocusUseCase.ts
2019-05-19 15:36:14 +09:00

16 lines
336 B
TypeScript

import FocusPresenter, { FocusPresenterImpl }
from '../presenters/FocusPresenter';
export default class FocusUseCases {
private presenter: FocusPresenter;
constructor({
presenter = new FocusPresenterImpl(),
} = {}) {
this.presenter = presenter;
}
focusFirstInput() {
this.presenter.focusFirstElement();
}
}