Kotlin Wrappers API Reference
Toggle table of contents
web
Target filter
web
Switch theme
Search in API
Skip to content
Kotlin Wrappers API Reference
kotlin-testing-library-user-event
/
testing.library.user.event
/
KeyboardHost
Keyboard
Host
external
class
KeyboardHost
(
source
)
Members
Constructors
Keyboard
Host
Link copied to clipboard
constructor
(
system
:
System
)
Properties
carry
Char
Link copied to clipboard
var
carryChar
:
String
modifiers
Link copied to clipboard
val
modifiers
:
KeyboardHostModifiers
system
Link copied to clipboard
val
system
:
System
Functions
get
Pressed
Keys
Link copied to clipboard
fun
getPressedKeys
(
)
:
ReadonlyArray
<
keyboardKey
>
is
Key
Pressed
Link copied to clipboard
fun
isKeyPressed
(
keyDef
:
keyboardKey
)
:
Boolean
keydown
Link copied to clipboard
suspend
fun
keydown
(
instance
:
Instance
,
keyDef
:
keyboardKey
)
:
Void
keydown
Async
Link copied to clipboard
fun
keydownAsync
(
instance
:
Instance
,
keyDef
:
keyboardKey
)
:
Promise
<
Void
>
Press a key
keyup
Link copied to clipboard
suspend
fun
keyup
(
instance
:
Instance
,
keyDef
:
keyboardKey
)
:
Void
keyup
Async
Link copied to clipboard
fun
keyupAsync
(
instance
:
Instance
,
keyDef
:
keyboardKey
)
:
Promise
<
Void
>
Release a key