Package com.iizix.term
Class HostKeyEvent
- java.lang.Object
- com.iizix.term.HostKeyEvent
public class HostKeyEvent extends java.lang.ObjectKey event for Host, like Java AWT's KeyEvent, i.e. not SWT.- Author:
- Christopher Mindus
Field Summary
Fields Modifier and Type Field Description booleanisAltDownThe Alt key state.booleanisControlDownThe Control key state.booleanisShiftDownThe Shift key state.static intVK_CONTROLstatic intVK_ENTERstatic intVK_F4
Constructor Summary
Constructors Constructor Description HostKeyEvent(int vk, boolean isShiftDown, boolean isControlDown, boolean isAltDown)Constructor.HostKeyEvent(int vk, boolean isShiftDown, boolean isControlDown, boolean isAltDown, boolean isRightSide)Constructor for Right Side.
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetKey()Gets the key.intgetSendKey()Gets the send key value, 0x1000 for right side, 0x2000 for Shift, 0x4000 for Control and 0x8000 for Alt.booleanisRightSide()Checks for right side.
Field Detail
VK_CONTROL
public static final int VK_CONTROL
- See Also:
- Constant Field Values
VK_ENTER
public static final int VK_ENTER
- See Also:
- Constant Field Values
VK_F4
public static final int VK_F4
- See Also:
- Constant Field Values
isShiftDown
public final boolean isShiftDown
The Shift key state.
isControlDown
public final boolean isControlDown
The Control key state.
isAltDown
public final boolean isAltDown
The Alt key state.