aboutsummaryrefslogtreecommitdiff
path: root/src/content/operators/impls/FocusOperator.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/content/operators/impls/FocusOperator.ts')
-rw-r--r--src/content/operators/impls/FocusOperator.ts10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/content/operators/impls/FocusOperator.ts b/src/content/operators/impls/FocusOperator.ts
new file mode 100644
index 0000000..51d6fec
--- /dev/null
+++ b/src/content/operators/impls/FocusOperator.ts
@@ -0,0 +1,10 @@
+import Operator from "../Operator";
+import FocusPresenter from "../../presenters/FocusPresenter";
+
+export default class FocusOperator implements Operator {
+ constructor(private readonly presenter: FocusPresenter) {}
+
+ async run(): Promise<void> {
+ this.presenter.focusFirstElement();
+ }
+}