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.
|
boolean |
isAltGraphDown()
Indicates that the AltGraph key is pressed.
|
boolean |
isControlDown()
Indicates that the Control key is pressed.
|
boolean |
isMetaDown()
Indicates that the Meta key is pressed.
|
boolean |
isShiftDown()
Indicates that the Shift key is pressed.
|
public static final BrowserKeyEvent.KeyModifiers NO_MODIFIERS
public boolean isAltDown()
true
if the Alt key is pressed.public boolean isAltGraphDown()
true
if the AltGraph key is pressed.public boolean isShiftDown()
true
if the Shift key is pressed.public boolean isControlDown()
true
if the Control key is pressed.public boolean isMetaDown()
true
if the Meta key is pressed.