22 package com.realtime.crossfire.jxclient.gui.keybindings;
25 import org.jetbrains.annotations.NotNull;
26 import org.jetbrains.annotations.Nullable;
47 super(commands, isDefault);
63 public boolean equals(@Nullable
final Object obj) {
102 if (keyChar ==
'\n') {
105 if (keyChar ==
'\t') {
108 if (keyChar ==
' ') {
111 return new String(
new char[] { keyChar });
boolean isDefault()
Returns whether the key binding is a "default" binding which should not be saved. ...
A KeyBinding that matches by key character.
boolean matchesKeyCode(@NotNull final KeyEvent2 keyEvent)
final CommandList commands
The associated CommandList.
Represents a pressed or released key.
char getKeyChar()
Returns the key character to match.
KeyCharKeyBinding(final char keyChar, @NotNull final CommandList commands, final boolean isDefault)
Creates a KeyBinding that matches by key character.
boolean matchesKeyChar(final char keyChar)
String getBindingDescription()
final char keyChar
The key character to match.
boolean equals(@Nullable final Object obj)
Abstract base class for key bindings.
A list of GUICommand instances.