src/js/ui/ui.menu.js
function keyPressed(e){
            if (e.code === "Escape") {
                if (this.parent !== null) {
                    var p = this.$parentMenu;
                    this.$canceled(this);
                    this.$hideMenu();
                    if (p !== null) {
                        p.requestFocus();
                    }
                }
            } else {
                this.$super(e);
            }
        }
function keyPressed(e){
            if (e.code === "Escape") {
                if (this.parent !== null) {
                    var p = this.$parentMenu;
                    this.$canceled(this);
                    this.$hideMenu();
                    if (p !== null) {
                        p.requestFocus();
                    }
                }
            } else {
                this.$super(e);
            }
        }
function keyPressed ( e ) { if ( e . code === "Escape" ) { if ( this . parent !== null ) { var p = this . $parentMenu ; this . $canceled ( this ) ; this . $hideMenu ( ) ; if ( p !== null ) { p . requestFocus ( ) ; } } } else { this . $super ( e ) ; } }
Override key pressed events handler to handle key events according to
context menu component requirements
@param  {zebkit.ui.event.KeyEvent} e a key event
@method keyPressed
Override key pressed events handler to handle key events according to context menu component requirements