diff options
author | Bartosz DziewoĆski <matma.rex@gmail.com> | 2017-06-22 21:30:03 +0200 |
---|---|---|
committer | Jforrester <jforrester@wikimedia.org> | 2017-08-01 20:59:13 +0000 |
commit | 8c1a1a62a1892be7eb5b5113669bc4e39250271a (patch) | |
tree | d0495a2f760c69d3918b7e24b0e31346c36a370c /includes/htmlform/fields/HTMLTextAreaField.php | |
parent | 58c66f541a1b6e7c985693a016dafa60fa1c1428 (diff) | |
download | mediawikicore-8c1a1a62a1892be7eb5b5113669bc4e39250271a.tar.gz mediawikicore-8c1a1a62a1892be7eb5b5113669bc4e39250271a.zip |
Avoid duplicate accesskey hints on OOUI widgets
Values returned by `Linker::tooltipAndAccesskeyAttribs()` and
`Linker::titleAttrib( ..., 'withaccess' )` include an accesskey
hint in the title text. This is unnecessary when used for OOjs UI
widgets, since after the changes from T168408 they display an
accesskey hint automatically.
Also fixed some other accesskey bugs in HTMLForm which probably
no one ever ran into.
Bug: T168408
Change-Id: I63285b5bce3341875a6d82eba059623bf105ca62
Diffstat (limited to 'includes/htmlform/fields/HTMLTextAreaField.php')
-rw-r--r-- | includes/htmlform/fields/HTMLTextAreaField.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/includes/htmlform/fields/HTMLTextAreaField.php b/includes/htmlform/fields/HTMLTextAreaField.php index 82ec3bf20121..480c5bb92657 100644 --- a/includes/htmlform/fields/HTMLTextAreaField.php +++ b/includes/htmlform/fields/HTMLTextAreaField.php @@ -71,7 +71,7 @@ class HTMLTextAreaField extends HTMLFormField { throw new Exception( "OOUIHTMLForm does not support the 'cols' parameter for textareas" ); } - $attribs = $this->getTooltipAndAccessKey(); + $attribs = $this->getTooltipAndAccessKeyOOUI(); if ( $this->mClass !== '' ) { $attribs['classes'] = [ $this->mClass ]; |