handleKeyPress method
Implementation
@HostListener('keypress')
@visibleForTemplate
void handleKeyPress(KeyboardEvent event) {
if (event.target != _root || !isSpaceKey(event)) return;
// Required to prevent window from scrolling.
event.preventDefault();
_isKeyboardEvent = true;
select();
}