feat: wrapper to handle key up

This commit is contained in:
karishmas6
2024-06-08 23:01:58 +05:30
parent c6a84f2b14
commit 4514a3a4af

View File

@@ -223,3 +223,13 @@ const handleKeydown = async (generator: WorkflowGenerator, page: Page, { key, co
logger.log('debug', `Key ${key} pressed`);
};
/**
* A wrapper function for handling the keyup event.
* @param keyboardInput - the keyboard input of the keyup event
* @category HelperFunctions
*/
const onKeyup = async (keyboardInput: KeyboardInput) => {
logger.log('debug', 'Handling keyup event emitted from client');
await handleWrapper(handleKeyup, keyboardInput);
}