public final class IdeKeyEventDispatcher extends java.lang.Object implements Disposable
Disposable.Parent
Constructor and Description |
---|
IdeKeyEventDispatcher(IdeEventQueue queue) |
Modifier and Type | Method and Description |
---|---|
static void |
addDumbModeWarningListener(DumbModeWarningListener listener) |
boolean |
dispatchKeyEvent(java.awt.event.KeyEvent e) |
void |
dispose()
Usually not invoked directly, see class javadoc.
|
KeyProcessorContext |
getContext() |
KeyState |
getState() |
static boolean |
hasMnemonicInWindow(java.awt.Component focusOwner,
java.awt.event.KeyEvent event) |
static boolean |
isAltGrLayout(java.awt.Component component) |
static boolean |
isModalContext(java.awt.Component component) |
boolean |
isPressedWasProcessed() |
boolean |
isReady() |
boolean |
isWaitingForSecondKeyStroke() |
boolean |
processAction(java.awt.event.InputEvent e,
ActionProcessor processor) |
static boolean |
removeAltGraph(java.awt.event.InputEvent e) |
void |
resetState() |
void |
setState(KeyState state) |
void |
updateCurrentContext(java.awt.Component component,
Shortcut sc)
This method fills
myActions list. |
public IdeKeyEventDispatcher(IdeEventQueue queue)
public boolean isWaitingForSecondKeyStroke()
public boolean dispatchKeyEvent(java.awt.event.KeyEvent e)
true
if and only if the passed event is already dispatched by the
IdeKeyEventDispatcher
and there is no need for any other processing of the event.public static boolean isModalContext(java.awt.Component component)
true
if and only if the component
represents
modal context.java.lang.IllegalArgumentException
- if component
is null
.public static boolean hasMnemonicInWindow(java.awt.Component focusOwner, java.awt.event.KeyEvent event)
public boolean processAction(java.awt.event.InputEvent e, ActionProcessor processor)
public static void addDumbModeWarningListener(DumbModeWarningListener listener)
public void updateCurrentContext(java.awt.Component component, Shortcut sc)
myActions
list.public KeyProcessorContext getContext()
public void dispose()
Disposable
dispose
in interface Disposable
public KeyState getState()
public void setState(KeyState state)
public void resetState()
public boolean isPressedWasProcessed()
public boolean isReady()
public static boolean removeAltGraph(java.awt.event.InputEvent e)
public static boolean isAltGrLayout(java.awt.Component component)