# Uses of Class
jfx.incubator.scene.control.input.KeyBinding

Packages that use KeyBinding
Package
Description
jfx.incubator.scene.control.input
Incubates a customization mechanism for the JavaFX Controls utilizing the `InputMap`.

- ## Uses of KeyBinding in jfx.incubator.scene.control.input

  Methods in jfx.incubator.scene.control.input that return KeyBinding
  Modifier and Type
  Method
  Description
  `static KeyBinding`
  KeyBinding.`alt(KeyCode code)`
  Creates a KeyBinding which corresponds to the key press with the specified `KeyCode` and the `alt` key modifier (`option` on macOS).
  `KeyBinding`
  KeyBinding.Builder.`build()`
  Creates a new `KeyBinding` instance from the current settings.
  `static KeyBinding`
  KeyBinding.`command(KeyCode code)`
  This utility method creates a `KeyBinding` which corresponds to the key press with the specified `KeyCode` and the macOS `⌘ command` key modifier.
  `static KeyBinding`
  KeyBinding.`control(KeyCode code)`
  Creates a KeyBinding which corresponds to the key press with the specified `KeyCode` and the `ctrl` key modifier (`control` on macOS).
  `static KeyBinding`
  KeyBinding.`controlShift(KeyCode code)`
  Creates a KeyBinding which corresponds to the key press with the specified `KeyCode` and the `shift` + `ctrl` key modifier (`control` on macOS).
  `static KeyBinding`
  KeyBinding.`of(KeyCode code)`
  Creates a `KeyBinding` which corresponds to the key press with the specified `KeyCode`.
  `static KeyBinding`
  KeyBinding.`option(KeyCode code)`
  Creates a KeyBinding which corresponds to the key press with the specified `KeyCode` and the `option` key modifier on macOS.
  `static KeyBinding`
  KeyBinding.`shift(KeyCode code)`
  Creates a KeyBinding which corresponds to the key press with the specified `KeyCode` and the `shift` key modifier.
  `static KeyBinding`
  KeyBinding.`shiftOption(KeyCode code)`
  Creates a KeyBinding which corresponds to the key press with the specified `KeyCode` and the `shift` + `option` key modifiers on macOS.
  `static KeyBinding`
  KeyBinding.`shiftShortcut(KeyCode code)`
  Creates a KeyBinding which corresponds to the key press with the specified `KeyCode` and the `shift` + shortcut key modifier (`⌘ command` on macOS, `ctrl` elsewhere).
  `static KeyBinding`
  KeyBinding.`shortcut(KeyCode code)`
  Creates a KeyBinding which corresponds to the key press with the specified `KeyCode` and the shortcut key modifier (`⌘ command` on macOS, `ctrl` elsewhere).
  `KeyBinding`
  KeyBinding.`withNewKeyCode(KeyCode newCode)`
  Creates a new instance of `KeyBinding` with the new `KeyCode` and the same set of the modifiers.
  Methods in jfx.incubator.scene.control.input that return types with arguments of type KeyBinding
  Modifier and Type
  Method
  Description
  `Set<KeyBinding>`
  InputMap.`getKeyBindings()`
  Collects all mapped key bindings.
  `Set<KeyBinding>`
  InputMap.`getKeyBindingsFor(FunctionTag tag)`
  Returns the set of key bindings mapped to the specified function tag.
  Methods in jfx.incubator.scene.control.input with parameters of type KeyBinding
  Modifier and Type
  Method
  Description
  `void`
  InputMap.`disableKeyBinding(KeyBinding k)`
  Disables the specified key binding.
  `void`
  InputMap.`register(KeyBinding k, Runnable function)`
  Registers a function for the given key binding.
  `void`
  InputMap.`registerKey(KeyBinding k, FunctionTag tag)`
  Link a key binding to the specified function tag.
  `void`
  InputMap.`restoreDefaultKeyBinding(KeyBinding k)`
  Restores the specified key binding to the value set by the skin, if any.