Attach a document listener to the lifecycle of the current Context. The event listener will be removed when the context is destroyed.
Optional
Whether to use event capturing.
Event name.
Additional event listener options.
Event handler.
<DocumentListener on='keydown' then={e => handleKeydownEvent(e)}/> Copy
<DocumentListener on='keydown' then={e => handleKeydownEvent(e)}/>
Attach a document listener to the lifecycle of the current Context. The event listener will be removed when the context is destroyed.