From 5527333b2e0bd890d1ea0af21c507ec246afd5fc Mon Sep 17 00:00:00 2001 From: marnixah Date: Mon, 24 Jan 2022 09:16:56 +0100 Subject: [PATCH] feat: keyboard.clear() --- src/classes/KeyboardManager.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/classes/KeyboardManager.ts b/src/classes/KeyboardManager.ts index ea7a278..2aadbc0 100644 --- a/src/classes/KeyboardManager.ts +++ b/src/classes/KeyboardManager.ts @@ -81,4 +81,11 @@ export default class KeyboardManager { await this.setCol(0); await this.tv.ok(); } + + async clear(): Promise { + const [row, col] = this.keyToRowCol('Backspace'); + await this.setRow(row); + await this.setCol(col); + await this.tv.ok(100); + } }