MCPcopy Index your code
hub / github.com/arduino/Arduino / bind

Method bind

app/src/processing/app/helpers/Keys.java:63–66  ·  view source on GitHub ↗

Register a keybinding in the given components WHEN_IN_FOCUSED_WINDOW input map, runing the given action when the action's accelerator key is pressed. Note that this is typically automatically handled when the action is assigned to a JMenuItem, but it can still be needed for other actions, or action

(final JComponent component, final Action action)

Source from the content-addressed store, hash-verified

61 * enabled, it is registered again.
62 */
63 public static void bind(final JComponent component, final Action action) {
64 bind(component, action,
65 (KeyStroke) action.getValue(Action.ACCELERATOR_KEY));
66 }
67
68 /**
69 * Register a keybinding, running the given action when the given keystroke is

Callers 3

ActionsMethod · 0.95
zepto.min.jsFile · 0.80
zepto.min.jsFile · 0.80

Calls 6

enableBindMethod · 0.95
disableBindMethod · 0.95
putMethod · 0.80
getValueMethod · 0.45
equalsMethod · 0.45

Tested by

no test coverage detected