MCPcopy Create free account
hub / github.com/AstroImageJ/astroimagej / shortcutInUse

Method shortcutInUse

ij/src/main/java/ij/Menus.java:1713–1719  ·  view source on GitHub ↗

Returns 'true' if this keyboard shortcut is in use.

(String shortcut)

Source from the content-addressed store, hash-verified

1711
1712 /** Returns 'true' if this keyboard shortcut is in use. */
1713 public static boolean shortcutInUse(String shortcut) {
1714 int code = convertShortcutToCode(shortcut);
1715 if (shortcuts.get(Integer.valueOf(code))!=null)
1716 return true;
1717 else
1718 return false;
1719 }
1720
1721 /** Set the size (in points) used for the fonts in ImageJ menus.
1722 Set the size to 0 to use the Java default size. */

Callers 2

installPluginMethod · 0.95
getAvailableShortcutsMethod · 0.95

Calls 3

convertShortcutToCodeMethod · 0.95
valueOfMethod · 0.80
getMethod · 0.45

Tested by

no test coverage detected