Wikimedia

UploadWizard's UI message should guess the keyboard key name according to the OS automatically

See https://phabricator.wikimedia.org/T113697 and https://www.mediawiki.org/wiki/Extension:UploadWizard

The message "mwe-upwiz-multi-file-select" in UploadWizard says: "Hold down the Ctrl/Command key to make multiple non-adjacent selections".

It would be nicer to turn the key name into a parameter and fill it in runtime by identifying the user's operating system.

This can be done with 'jquery.client', $.client.profile().platform will give the information. It's already used in the "VisualEditor" extension for platform-specific keyboard shortcuts - see the code there as an example.

Task tags

  • os-detection
  • javascript

Students who completed this task

Geoffrey Mon

Task type

  • code Code
close

2015