Cache redirects from Special:Redirect
[lhc/web/wiklou.git] / resources / src / mediawiki.rcfilters / ui / mw.rcfilters.ui.MenuSelectWidget.js
index 46e8208..49f980c 100644 (file)
                this.$overlay.append( this.highlightPopup.$element );
 
                // Count groups per view
-               // eslint-disable-next-line no-restricted-properties
+               // eslint-disable-next-line jquery/no-each-util
                $.each( groups, function ( groupName, groupModel ) {
                        if ( !groupModel.isHidden() ) {
                                viewGroupCount[ groupModel.getView() ] = viewGroupCount[ groupModel.getView() ] || 0;
                        }
                } );
 
-               // eslint-disable-next-line no-restricted-properties
+               // eslint-disable-next-line jquery/no-each-util
                $.each( groups, function ( groupName, groupModel ) {
                        var currentItems = [],
                                view = groupModel.getView();
        /**
         * @inheritdoc
         */
-       mw.rcfilters.ui.MenuSelectWidget.prototype.onKeyDown = function ( e ) {
+       mw.rcfilters.ui.MenuSelectWidget.prototype.onDocumentKeyDown = function ( e ) {
                var nextItem,
                        currentItem = this.findHighlightedItem() || this.findSelectedItem();
 
                // Call parent
-               mw.rcfilters.ui.MenuSelectWidget.parent.prototype.onKeyDown.call( this, e );
+               mw.rcfilters.ui.MenuSelectWidget.parent.prototype.onDocumentKeyDown.call( this, e );
 
                // We want to select the item on arrow movement
                // rather than just highlight it, like the menu