Skip to content

Commit

Permalink
Minor formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Schahen committed Feb 28, 2024
1 parent 5a1d396 commit 7b5307e
Showing 1 changed file with 8 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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"
)
)
)
)
Expand Down

0 comments on commit 7b5307e

Please sign in to comment.