HandleModalKeyDown
Function: handleModalKeyDown()
[object Object]
Defined in: app/components/UI/Modal/Modal.handlers.tsx:8
Processes keyboard events to handle modal interactions, specifically looking for the "Escape" key to trigger the closing of a modal.
Parameters
event
[object Object]
The keyboard event object from the browser.
onClose
() => void
The callback function to execute when the Escape key is pressed.
Returns
[object Object]