Last modified: 2007-08-23 08:54:17 UTC
Since the keyboard access keys are available in the form of system messages - # Keyboard access keys for power users 'accesskey-search' => 'f', 'accesskey-minoredit' => 'i', 'accesskey-save' => 's', 'accesskey-preview' => 'p', 'accesskey-diff' => 'v', 'accesskey-compareselectedversions' => 'v', - maybe they could be inserted automatically in other system messages. For example the 'tooltip-preview' message could be changed as the following: - 'tooltip-preview' => 'Preview your changes, please use this before saving! [alt-p]', + 'tooltip-preview' => 'Preview your changes, please use this before saving! [alt-$1]', $1 should then return the content of msg:accesskey-preview Best regards,
I have a feeling all those messages are actually deprecated - the real tooltips are inserted by a piece of JavaScript after the page is loaded. That may seem silly, but the problem is that all MediaWiki does is insert the standard HTML 'accesskey' attribute into appropriate links, and different browsers use different conventions for how that can then be used - some may make you hold down 'alt', some 'ctrl', some the Mac's 'command' key, possibly some just let you type it on its own, etc. That's hard to express in one tooltip (since people generally don't know how it works on their own browser), so someone hit on the idea of dynamically generating appropriate tooltips through a function in [[MediaWiki:monobook.js]]
I've hopefully removed almost all of the accesskey- and tooltip- messages which are handled by JS. The rest are referred in the code. And I have the feeling that firefox doesn't understand them if they are added with JS.
The access key system changed a time ago, the access keys are not longer part of the 'tooltip-...' messages, they are generated dynamically on base of users browser/operation system now :-) Some leftovers are removed with r25080.