22 package com.realtime.crossfire.jxclient.gui.keybindings;
25 import org.jetbrains.annotations.NotNull;
26 import org.jetbrains.annotations.Nullable;
104 if (commands == null) {
105 if (keyBindings != null) {
109 if (keyBindings2 != null) {
113 if (keyBindings != null) {
KeyEvent2 keyEvent
The key event.
void addKeyBindingAsKeyCode(@NotNull final KeyEvent2 keyEvent, @NotNull final CommandList cmdList, final boolean isDefault)
Adds a key binding for a key code/modifiers pair.
void keyPressed(@NotNull final KeyEvent2 keyEvent)
Records a binding by key code.
boolean keyReleased()
Records a key released event.
Represents a pressed or released key.
int state
The dialog state: 0=waiting for initial key press, 1=waiting for key release.
KeyBindingState(@Nullable final KeyBindings keyBindings, @Nullable final KeyBindings keyBindings2, @Nullable final CommandList commands)
Creates a new instance.
final CommandList commands
The commands to bind, or.
int type
The type of key binding: -1=invalid, 0=key code (keyEvent is valid).
final KeyBindings keyBindings
The KeyBindings to modify.
Manages the state for the key binding dialog.
void deleteKeyBindingAsKeyCode(@NotNull final KeyEvent2 keyEvent)
Removes a key binding for a key code/modifiers pair.
A list of GUICommand instances.
Manages a set of key bindings.
final KeyBindings keyBindings2
The KeyBindings to modify.