public class SendKeyEventCommandParams
extends OCastCommandParams
Represents the parameters of a keyPressed command.
| Constructor and Description |
|---|
SendKeyEventCommandParams(java.lang.String key,
java.lang.String code,
boolean ctrl,
boolean alt,
boolean shift,
boolean meta,
SendKeyEventCommandParams.DOMKeyLocation location)
Creates an instance of
class SendKeyEventCommandParams. |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getAlt()
Indicates if the
|
java.lang.String |
getCode()
A string that identifies the physical key being pressed.
|
boolean |
getCtrl()
Indicates if the
|
java.lang.String |
getKey()
The key attribute value corresponding to the key pressed.
|
SendKeyEventCommandParams.DOMKeyLocation |
getLocation()
The location of the key on the keyboard.
|
boolean |
getMeta()
Indicates if the
|
boolean |
getShift()
Indicates if the
|
build, getName, optionspublic SendKeyEventCommandParams(@NotNull
java.lang.String key,
@NotNull
java.lang.String code,
boolean ctrl,
boolean alt,
boolean shift,
boolean meta,
@NotNull
SendKeyEventCommandParams.DOMKeyLocation location)
Creates an instance of class SendKeyEventCommandParams.
key - The key attribute value corresponding to the key pressed. Possible supported keys are defined by the W3C UI events KeyboardEvent interface.code - A string that identifies the physical key being pressed.ctrl - Indicates if the Control key is pressed.alt - Indicates if the Alt key is pressed.shift - Indicates if the Shift key is pressed.meta - Indicates if the Meta key (OS specific) is pressed.location - The location of the key on the keyboard. This is used to disambiguate between key values that can be generated by different physical keys on the keyboard, for example, the left and right Shift key.class SendKeyEventCommandParams@NotNull public java.lang.String getKey()
The key attribute value corresponding to the key pressed.
Possible supported keys are defined by the W3C UI events KeyboardEvent interface.
@NotNull public java.lang.String getCode()
A string that identifies the physical key being pressed.
public boolean getCtrl()
Indicates if the
Control key is pressed.
public boolean getAlt()
Indicates if the
Alt key is pressed.
public boolean getShift()
Indicates if the
Shift key is pressed.
public boolean getMeta()
Indicates if the
Meta key (OS specific) is pressed.
@NotNull public SendKeyEventCommandParams.DOMKeyLocation getLocation()
The location of the key on the keyboard.
This is used to disambiguate between key values that can be generated by different physical keys on the keyboard, for example, the left and right Shift key.