Topic on Talk:ResourceLoader/Legacy JavaScript

Perhelion (talkcontribs)

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.

He7d3r (talkcontribs)
Perhelion (talkcontribs)

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

Perhelion (talkcontribs)

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)

2nd (talkcontribs)

I changed mw.util.tooltipAccessKeyPrefix to $(btnOld).updateTooltipAccessKeys().getAccessKeyPrefix