public static final class BrowserKeyEvent.KeyModifiers
extends java.lang.Object
BrowserKeyEvent instance.
BrowserKeyEvent.KeyModifiersBuilder class should be used to construct an instance of this class.
| Modifier and Type | Field and Description |
|---|---|
static BrowserKeyEvent.KeyModifiers |
NO_MODIFIERS |
| Modifier and Type | Method and Description |
|---|---|
boolean |
isAltDown()
Indicates that the Alt key is pressed.
指示按下Alt键。 |
boolean |
isAltGraphDown()
Indicates that the AltGraph key is pressed.
指示按下AltGraph键。 |
boolean |
isControlDown()
Indicates that the Control key is pressed.
表示按下了Control键。 |
boolean |
isMetaDown()
Indicates that the Meta key is pressed.
指示按下了Meta键。 |
boolean |
isShiftDown()
Indicates that the Shift key is pressed.
指示按下Shift键。 |
public static final BrowserKeyEvent.KeyModifiers NO_MODIFIERS
public boolean isAltDown()
true if the Alt key is pressed.
如果按下Alt键。
public boolean isAltGraphDown()
true if the AltGraph key is pressed.
如果按下AltGraph键。
public boolean isShiftDown()
true if the Shift key is pressed.
如果按下Shift键。
public boolean isControlDown()
true if the Control key is pressed.
如果按下Control键。
public boolean isMetaDown()
true if the Meta key is pressed.
如果按了Meta键。