public interface KeyModifiers
Modifier and Type | Interface and Description |
---|---|
static class |
KeyModifiers.Builder
A builder of
KeyModifiers . |
Modifier and Type | Method and Description |
---|---|
default boolean |
isAltDown()
Returns
true if the Alt key is pressed. |
default boolean |
isAltGraphDown()
Returns
true if the Alt Graph/Right Alt key is pressed. |
default boolean |
isControlDown()
Returns
true if the Ctrl key is pressed. |
default boolean |
isMetaDown()
Returns
true if the Meta key is pressed. |
default boolean |
isShiftDown()
Returns
true if the Shift key is pressed. |
static KeyModifiers.Builder |
newBuilder()
Creates a new
KeyModifiers builder. |
static KeyModifiers.Builder newBuilder()
KeyModifiers
builder.KeyModifiers.Builder
instancedefault boolean isAltDown()
true
if the Alt key is pressed.default boolean isAltGraphDown()
true
if the Alt Graph/Right Alt key is pressed.default boolean isShiftDown()
true
if the Shift key is pressed.default boolean isControlDown()
true
if the Ctrl key is pressed.default boolean isMetaDown()
true
if the Meta key is pressed.