registerRootListeners() {
            if (!this.areRootListenersRegistered) {
                const rootElement = this.getRootElement();
                if (rootElement) {
                    rootElement.addEventListener("keydown", this.rootKeydownListener);
                    rootElement.addEventListener("keyup", this.rootKeyupListener);
                    this.areRootListenersRegistered = true;
                }
            }
        }
/**
         * If not previously done and `this.getRootElement()` returns an element, adds the root key
         * listeners to that element.
         */
If not previously done and `this.getRootElement()` returns an element, adds the root key
listeners to that element.
If not previously done and ` this . getRootElement () ` returns an element adds the root key listeners to that element .
registerRootListeners() {
            if (!this.areRootListenersRegistered) {
                const rootElement = this.getRootElement();
                if (rootElement) {
                    rootElement.addEventListener("keydown", this.rootKeydownListener);
                    rootElement.addEventListener("keyup", this.rootKeyupListener);
                    this.areRootListenersRegistered = true;
                }
            }
        }
registerRootListeners ( ) { if ( ! this . areRootListenersRegistered ) { const rootElement = this . getRootElement ( ) ; if ( rootElement ) { rootElement . addEventListener ( "keydown" , this . rootKeydownListener ) ; rootElement . addEventListener ( "keyup" , this . rootKeyupListener ) ; this . areRootListenersRegistered = true ; } } }
If not previously done and `this.getRootElement()` returns an element, adds the root key
 listeners to that element.
If not previously done and ` this . getRootElement () ` returns an element adds the root key listeners to that element .