From 7b5307e3609cab55246556bda421b216b385a6fb Mon Sep 17 00:00:00 2001 From: Shagen Ogandzhanian Date: Wed, 28 Feb 2024 13:40:05 +0100 Subject: [PATCH] Minor formatting --- .../compose/ui/test/InputDispatcher.wasmMain.kt | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/compose/ui/ui-test/src/wasmJsMain/kotlin/androidx/compose/ui/test/InputDispatcher.wasmMain.kt b/compose/ui/ui-test/src/wasmJsMain/kotlin/androidx/compose/ui/test/InputDispatcher.wasmMain.kt index ff9885875101e..71b069d849bcb 100644 --- a/compose/ui/ui-test/src/wasmJsMain/kotlin/androidx/compose/ui/test/InputDispatcher.wasmMain.kt +++ b/compose/ui/ui-test/src/wasmJsMain/kotlin/androidx/compose/ui/test/InputDispatcher.wasmMain.kt @@ -46,12 +46,14 @@ internal actual fun keyEvent( kind = kind, key = SkikoKey.valueOf(nativeCode), modifiers = SkikoInputModifiers(modifiers), - platform = KeyboardEvent(when (kind) { - SkikoKeyboardEventKind.DOWN -> "keydown" - SkikoKeyboardEventKind.UP -> "keyup" - else -> "keypress" - }, KeyboardEventInit( - key= if (key.isPrintable()) nativeCode.toChar().toString() else "Unknown"), + platform = KeyboardEvent( + when (kind) { + SkikoKeyboardEventKind.DOWN -> "keydown" + SkikoKeyboardEventKind.UP -> "keyup" + else -> "keypress" + }, KeyboardEventInit( + key = if (key.isPrintable()) nativeCode.toChar().toString() else "Unknown" + ) ) ) )