-
public final class DispatchKeyEventRequestRequest object containing input parameters for the InputDomain.dispatchKeyEvent command.
-
-
Field Summary
Fields Modifier and Type Field Description private final Stringtypeprivate final Integermodifiersprivate final Doubletimestampprivate final Stringtextprivate final StringunmodifiedTextprivate final StringkeyIdentifierprivate final Stringcodeprivate final Stringkeyprivate final IntegerwindowsVirtualKeyCodeprivate final IntegernativeVirtualKeyCodeprivate final BooleanautoRepeatprivate final BooleanisKeypadprivate final BooleanisSystemKeyprivate final Integerlocationprivate final List<String>commands
-
Constructor Summary
Constructors Constructor Description DispatchKeyEventRequest(String type, Integer modifiers, Double timestamp, String text, String unmodifiedText, String keyIdentifier, String code, String key, Integer windowsVirtualKeyCode, Integer nativeVirtualKeyCode, Boolean autoRepeat, Boolean isKeypad, Boolean isSystemKey, Integer location, List<String> commands)
-
Method Summary
Modifier and Type Method Description final Stringcomponent1()final Integercomponent2()final Doublecomponent3()final Stringcomponent4()final Stringcomponent5()final Stringcomponent6()final Stringcomponent7()final Stringcomponent8()final Integercomponent9()final Integercomponent10()final Booleancomponent11()final Booleancomponent12()final Booleancomponent13()final Integercomponent14()final List<String>component15()final DispatchKeyEventRequestcopy(String type, Integer modifiers, Double timestamp, String text, String unmodifiedText, String keyIdentifier, String code, String key, Integer windowsVirtualKeyCode, Integer nativeVirtualKeyCode, Boolean autoRepeat, Boolean isKeypad, Boolean isSystemKey, Integer location, List<String> commands)final StringgetType()Type of the key event. final IntegergetModifiers()Bit field representing pressed modifier keys. final DoublegetTimestamp()Time at which the event occurred. final StringgetText()Text as generated by processing a virtual key code with a keyboard layout. final StringgetUnmodifiedText()Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). final StringgetKeyIdentifier()Unique key identifier (e.g., 'U+0041') (default: ""). final StringgetCode()Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: ""). final StringgetKey()Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: ""). final IntegergetWindowsVirtualKeyCode()Windows virtual key code (default: 0). final IntegergetNativeVirtualKeyCode()Native virtual key code (default: 0). final BooleangetAutoRepeat()Whether the event was generated from auto repeat (default: false). final BooleangetIsKeypad()Whether the event was generated from the keypad (default: false). final BooleangetIsSystemKey()Whether the event was a system key event (default: false). final IntegergetLocation()Whether the event was from the left or right side of the keyboard. final List<String>getCommands()Editing commands to send with the key event (e.g., 'selectAll') (default: []). -
-
Constructor Detail
-
DispatchKeyEventRequest
DispatchKeyEventRequest(String type, Integer modifiers, Double timestamp, String text, String unmodifiedText, String keyIdentifier, String code, String key, Integer windowsVirtualKeyCode, Integer nativeVirtualKeyCode, Boolean autoRepeat, Boolean isKeypad, Boolean isSystemKey, Integer location, List<String> commands)
-
-
Method Detail
-
component1
final String component1()
-
component2
final Integer component2()
-
component3
final Double component3()
-
component4
final String component4()
-
component5
final String component5()
-
component6
final String component6()
-
component7
final String component7()
-
component8
final String component8()
-
component9
final Integer component9()
-
component10
final Integer component10()
-
component11
final Boolean component11()
-
component12
final Boolean component12()
-
component13
final Boolean component13()
-
component14
final Integer component14()
-
component15
final List<String> component15()
-
copy
final DispatchKeyEventRequest copy(String type, Integer modifiers, Double timestamp, String text, String unmodifiedText, String keyIdentifier, String code, String key, Integer windowsVirtualKeyCode, Integer nativeVirtualKeyCode, Boolean autoRepeat, Boolean isKeypad, Boolean isSystemKey, Integer location, List<String> commands)
-
getModifiers
final Integer getModifiers()
Bit field representing pressed modifier keys. Alt=1, Ctrl=2, Meta/Command=4, Shift=8 (default: 0).
-
getTimestamp
final Double getTimestamp()
Time at which the event occurred.
-
getText
final String getText()
Text as generated by processing a virtual key code with a keyboard layout. Not needed for for
keyUpandrawKeyDownevents (default: "")
-
getUnmodifiedText
final String getUnmodifiedText()
Text that would have been generated by the keyboard if no modifiers were pressed (except for shift). Useful for shortcut (accelerator) key handling (default: "").
-
getKeyIdentifier
final String getKeyIdentifier()
Unique key identifier (e.g., 'U+0041') (default: "").
-
getCode
final String getCode()
Unique DOM defined string value for each physical key (e.g., 'KeyA') (default: "").
-
getKey
final String getKey()
Unique DOM defined string value describing the meaning of the key in the context of active modifiers, keyboard layout, etc (e.g., 'AltGr') (default: "").
-
getWindowsVirtualKeyCode
final Integer getWindowsVirtualKeyCode()
Windows virtual key code (default: 0).
-
getNativeVirtualKeyCode
final Integer getNativeVirtualKeyCode()
Native virtual key code (default: 0).
-
getAutoRepeat
final Boolean getAutoRepeat()
Whether the event was generated from auto repeat (default: false).
-
getIsKeypad
final Boolean getIsKeypad()
Whether the event was generated from the keypad (default: false).
-
getIsSystemKey
final Boolean getIsSystemKey()
Whether the event was a system key event (default: false).
-
getLocation
final Integer getLocation()
Whether the event was from the left or right side of the keyboard. 1=Left, 2=Right (default: 0).
-
getCommands
final List<String> getCommands()
Editing commands to send with the key event (e.g., 'selectAll') (default: []). These are related to but not equal the command names used in
document.execCommandand NSStandardKeyBindingResponding. See https://source.chromium.org/chromium/chromium/src/+/master:third_party/blink/renderer/core/editing/commands/editor_command_names.h for valid command names.
-
-
-
-