Restore search box tabindex
authorAlex Monk <krenair@wikimedia.org>
Wed, 21 May 2014 15:16:44 +0000 (16:16 +0100)
committerOri.livneh <ori@wikimedia.org>
Thu, 22 May 2014 12:28:42 +0000 (12:28 +0000)
This was set by JS in collapsibleNav (wtf?) until I220057c7 nuked that module entirely.

A user needed this for accessibility reasons (details in OTRS#2014051610008141)

Bug: 29199
Change-Id: I74725c01a2058be1151927661c22ce42a1463f91

includes/SkinTemplate.php

index 08816ad..cf8b3fc 100644 (file)
@@ -1987,6 +1987,7 @@ abstract class BaseTemplate extends QuickTemplate {
                        'name' => 'search',
                        'placeholder' => wfMessage( 'searchsuggest-search' )->text(),
                        'value' => $this->get( 'search', '' ),
+                       'tabindex' => 1
                );
                $realAttrs = array_merge( $realAttrs, Linker::tooltipAndAccesskeyAttribs( 'search' ), $attrs );
                return Html::element( 'input', $realAttrs );