RCFilters: Unify 'highlight' and 'selected' items
authorMoriel Schottlender <moriel@gmail.com>
Tue, 30 May 2017 11:29:35 +0000 (14:29 +0300)
committerRoan Kattouw <roan.kattouw@gmail.com>
Tue, 30 May 2017 20:51:52 +0000 (13:51 -0700)
commit3b0aff2df70e9dc9533c9a607602433b7d34333e
tree3890ff6fd1bddf5a6573473190d2b73290b2f21a
parent563c9b4cbb0adaee6976526d467380745330220d
RCFilters: Unify 'highlight' and 'selected' items

When moving with the arrows, we don't want a distinction between
the 'selected' and 'highlighted' states, since those don't quite
make sense in RCFilters system. We unify those by always using
'selected' state; this also means that when searching AND when
opening the popup, the first item is 'selected' so the user can
hit 'enter' and add it in, or hit the up/down arrow keys and
move up and down in the list.

Bug: T159768
Change-Id: Ife62e6e7241b96d846d8c5851b173a09a1f45fa4
resources/src/mediawiki.rcfilters/ui/mw.rcfilters.ui.MenuSelectWidget.js