mirror of
https://github.com/jenkinsci/jenkins.git
synced 2026-11-08 01:26:03 +00:00
Address comments
This commit is contained in:
1 parent
231631dc31
commit
3996dc06fb
3 files changed
+7
-4
No files matched your search
@@ -2475,6 +2475,10 @@ public class Functions {
|
||||
return String.valueOf(Math.floor(Math.random() * 3000));
|
||||
}
|
||||
|
||||
/**
|
||||
* @param keyboardShortcut the shortcut to be translated
|
||||
* @return the translated shortcut, e.g. CMD+K -> ⌘+K for macOS, CTRL+K for Windows
|
||||
*/
|
||||
@Restricted(NoExternalUse.class)
|
||||
public static String translateModifierKeysForUsersPlatform(String keyboardShortcut) {
|
||||
StaplerRequest currentRequest = Stapler.getCurrentRequest();
|
||||
|
||||
Reference in new issue
Block a user