Package com.teamdev.jxbrowser.ui
Interface KeyModifiers
public interface KeyModifiers
The modifiers for the keyboard and mouse events. Indicates which keyboard modifier keys are
pressed.
-
Nested Class Summary
-
Method Summary
Modifier and TypeMethodDescriptiondefault boolean
Returnstrue
if the Alt key is pressed.default boolean
Returnstrue
if the Alt Graph/Right Alt key is pressed.default boolean
Returnstrue
if the Ctrl key is pressed.default boolean
Returnstrue
if the Meta key is pressed.default boolean
Returnstrue
if the Shift key is pressed.static KeyModifiers.Builder
Creates a newKeyModifiers
builder.
-
Method Details
-
newBuilder
Creates a newKeyModifiers
builder.- Returns:
- a new
KeyModifiers.Builder
instance
-
isAltDown
default boolean isAltDown()Returnstrue
if the Alt key is pressed. -
isAltGraphDown
default boolean isAltGraphDown()Returnstrue
if the Alt Graph/Right Alt key is pressed. -
isShiftDown
default boolean isShiftDown()Returnstrue
if the Shift key is pressed. -
isControlDown
default boolean isControlDown()Returnstrue
if the Ctrl key is pressed. -
isMetaDown
default boolean isMetaDown()Returnstrue
if the Meta key is pressed.
-