Merge "RCFilters: Use findRelativeSelectableItem instead of getRelativeSelectableitem"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Thu, 21 Sep 2017 18:21:19 +0000 (18:21 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Thu, 21 Sep 2017 18:21:19 +0000 (18:21 +0000)
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.MenuSelectWidget.js

index 5ba42e7..2aabe68 100644 (file)
                                case OO.ui.Keys.UP:
                                case OO.ui.Keys.LEFT:
                                        // Get the next item
-                                       nextItem = this.getRelativeSelectableItem( currentItem, -1 );
+                                       nextItem = this.findRelativeSelectableItem( currentItem, -1 );
                                        break;
                                case OO.ui.Keys.DOWN:
                                case OO.ui.Keys.RIGHT:
                                        // Get the next item
-                                       nextItem = this.getRelativeSelectableItem( currentItem, 1 );
+                                       nextItem = this.findRelativeSelectableItem( currentItem, 1 );
                                        break;
                        }