Example usage for javafx.scene.input KeyCodeCombination KeyCodeCombination

List of usage examples for javafx.scene.input KeyCodeCombination KeyCodeCombination

Introduction

In this page you can find the example usage for javafx.scene.input KeyCodeCombination KeyCodeCombination.

Prototype

public KeyCodeCombination(final @NamedArg("code") KeyCode code, final @NamedArg("shift") ModifierValue shift,
        final @NamedArg("control") ModifierValue control, final @NamedArg("alt") ModifierValue alt,
        final @NamedArg("meta") ModifierValue meta, final @NamedArg("shortcut") ModifierValue shortcut) 

Source Link

Document

Constructs a KeyCodeCombination for the specified main key and with an explicit specification of all modifier keys.

Usage

From source file:com.ubershy.streamsis.actions.HotkeyAction.java

private String generateStubKeyCombinationString() {
    ArrayList<ModifierValue> modifiers = generateDefaultModifiers();
    // No way to create KeyCodeCombination with null keycode, using "Clear" that is not located
    // on keyboard;
    KeyCodeCombination kb = new KeyCodeCombination(emptyCode, modifiers.get(0), modifiers.get(1),
            modifiers.get(2), modifiers.get(3), modifiers.get(4));
    return kb.getName();
}