feat: wrapper to handle key down

This commit is contained in:
karishmas6
2024-06-08 23:00:59 +05:30
parent 95b59c3e1f
commit 67e093604c

View File

@@ -197,3 +197,13 @@ const handleMousemove = async (generator: WorkflowGenerator, page: Page, { x, y
}
}
/**
* A wrapper function for handling the keydown event.
* @param keyboardInput - the keyboard input of the keydown event
* @category HelperFunctions
*/
const onKeydown = async (keyboardInput: KeyboardInput) => {
logger.log('debug', 'Handling keydown event emitted from client');
await handleWrapper(handleKeydown, keyboardInput);
}