From aa9f98e73eac1a76ee22f5e04d68e22e884e2d3b Mon Sep 17 00:00:00 2001 From: Herbert Lin Date: Mon, 13 May 2024 23:28:10 -0700 Subject: [PATCH] feat: Add definition for beforeInputUpdate --- src/lib/interfaces.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/lib/interfaces.ts b/src/lib/interfaces.ts index cba5aa9f..a7b735d0 100644 --- a/src/lib/interfaces.ts +++ b/src/lib/interfaces.ts @@ -291,6 +291,11 @@ export interface KeyboardOptions { */ onKeyReleased?: (button: string, e?: MouseEvent) => any; + /** + * Executes the callback function before an input is about to be updated + */ + beforeInputUpdate?: (instance: SimpleKeyboard) => void; + /** * Module options can have any format */