From 03e5a1ed97f634503b00c743812feeae20d7bbf9 Mon Sep 17 00:00:00 2001 From: karishmas6 Date: Sat, 8 Jun 2024 00:11:36 +0530 Subject: [PATCH] chore: onKyeboardInput description --- server/src/workflow-management/classes/Generator.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/server/src/workflow-management/classes/Generator.ts b/server/src/workflow-management/classes/Generator.ts index 762cb865..f69f3f99 100644 --- a/server/src/workflow-management/classes/Generator.ts +++ b/server/src/workflow-management/classes/Generator.ts @@ -249,7 +249,13 @@ export class WorkflowGenerator { await this.addPairToWorkflowAndNotifyClient(pair, page); }; - + /** + * Generates a pair for the keypress event. + * @param key The key to be pressed. + * @param coordinates The coordinates of the keypress event. + * @param page The page to use for obtaining the needed data. + * @returns {Promise} + */ public onKeyboardInput = async (key: string, coordinates: Coordinates, page: Page) => { let where: WhereWhatPair["where"] = { url: this.getBestUrl(page.url()) }; const selector = await this.generateSelector(page, coordinates, ActionType.Keydown);