Address comments

This commit is contained in:
Jan Faracik committed 2023-11-20 15:26:36 +00:00
1 parent 231631dc31
commit 3996dc06fb
3 files changed
+7 -4

No files matched your search

+4
View File
@@ -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();