public class DefaultInputHandler extends InputHandler
InputHandler.NonRepeatable
repeatCount
Constructor and Description |
---|
DefaultInputHandler(ScriptEditControl scriptEditControl,
MenuEntries menuEntries)
Creates a new input handler with no key bindings defined.
|
Modifier and Type | Method and Description |
---|---|
void |
addDefaultKeyBindings()
Sets up the default key bindings.
|
InputHandler |
copy()
Returns a copy of this input handler that shares the same key bindings.
|
void |
keyPressed(java.awt.event.KeyEvent e)
Handle a key pressed event.
|
void |
keyReleased(java.awt.event.KeyEvent e) |
void |
keyTyped(java.awt.event.KeyEvent e)
Handle a key typed event.
|
executeAction, getRepeatCount, getTextArea, handleGrabAction, isRepeatEnabled, setRepeatCount, setRepeatEnabled
public DefaultInputHandler(@NotNull ScriptEditControl scriptEditControl, @NotNull MenuEntries menuEntries)
scriptEditControl
- the script edit control to affectmenuEntries
- the menu entries to include in the function list
popuppublic void addDefaultKeyBindings()
addDefaultKeyBindings
in class InputHandler
public InputHandler copy()
copy
in class InputHandler
public void keyPressed(java.awt.event.KeyEvent e)
public void keyReleased(java.awt.event.KeyEvent e)
public void keyTyped(java.awt.event.KeyEvent e)