Keymap (Java SE 19 & JDK 19) (original) (raw)


public interface Keymap

A collection of bindings of KeyStrokes to actions. The bindings are basically name-value pairs that potentially resolve in a hierarchy.

void
Adds a binding to the keymap.
Fetches the action appropriate for the given symbolic event sequence.
Fetches all of the actions defined in this keymap.
Fetches all of the keystrokes in this map that are bound to some action.
Fetches the default action to fire if a key is typed (i.e. a KEY_TYPED KeyEvent is received) and there is no binding for it.
Fetches the keystrokes that will result in the given action.
[getName](#getName%28%29)()
Fetches the name of the set of key-bindings.
Fetches the parent keymap used to resolve key-bindings.
boolean
Determines if the given key sequence is locally defined.
void
Removes all bindings from the keymap.
void
Removes a binding from the keymap.
void
Set the default action to fire if a key is typed.
void
Sets the parent keymap, which will be used to resolve key-bindings.