Current replacement is mw.util.tooltipAccessKeyPrefix
but you get also a Deprecation warning: "Use of "tooltipAccessKeyRegexp" is deprecated. Use jquery.accessKeyLabel instead."
But this is completely undocumented I found nothing how can this be used. It seems you must first select a mystic jquery object.
Topic on Talk:ResourceLoader/Legacy JavaScript
See https://doc.wikimedia.org/mediawiki-core/master/js/#!/api/jQuery.plugin.accessKeyLabel and w:en:Special:Diff/611652439 / w:en:Special:diff/611652528 for an example of use.
Ok, hm you removed concrete correspondence. I found this after several trial and error $("#wpWatchthis").updateTooltipAccessKeys.getAccessKeyPrefix()
. (There stays only somewhat updateTooltipAccessKeys_getAccessKeyPrefix( [ua] ) : string
Exposed for testing. ...)
I mean this is much more complicating as it was!?! Thanks
Another point, the var tooltipAccessKeyPrefix
(give alt-
) is not the same as mw.util.tooltipAccessKeyPrefix
(give "alt-shift-"
). Sorry for the detailed question, is this so intended? So I must also set a new KeyPrefix for my Button (the alt-
seems default)
I changed mw.util.tooltipAccessKeyPrefix
to $(btnOld).updateTooltipAccessKeys().getAccessKeyPrefix