PolymerElements / iron-menu-behavior

Accessible menu behavior
18 stars 28 forks source link

stopKeyboardEventPropagation does not seem to be working... #65

Open sander76 opened 8 years ago

sander76 commented 8 years ago

shouldn't the _onKeydown function implement a check for stopKeyboardEventPropagation for it to work ?

        _onKeydown: function(event) {
            if (!this.keyboardEventMatchesKeys(event, 'up down esc')) {
                // all other keys focus the menu item starting with that character
                this._focusWithKeyboardEvent(event);
            }
// added stopKeyboardEventPropagation
            if (this.stopKeyboardEventPropagation) {
                event.stopPropagation();
            }
        },