aboutsummaryrefslogtreecommitdiff
path: root/src/content/usecases/FocusUseCase.ts
blob: 0158672e991cf60774f3fb4f7484ff065276f305 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import { injectable, inject } from 'tsyringe';
import FocusPresenter from '../presenters/FocusPresenter';

@injectable()
export default class FocusUseCases {
  constructor(
    @inject('FocusPresenter') private presenter: FocusPresenter,
  ) {
  }

  focusFirstInput() {
    this.presenter.focusFirstElement();
  }
}