Skip to content

Commit

Permalink
Minor refactor
Browse files Browse the repository at this point in the history
  • Loading branch information
elijah-semyonov committed Feb 12, 2024
1 parent 053580a commit 3fc414f
Showing 1 changed file with 6 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -280,15 +280,17 @@ internal class ComposeSceneMediator(
configuration.accessibilitySyncOptions
},
performEscape = {
onKeyboardEvent(
val down = onKeyboardEvent(
KeyEvent(
SkikoKeyboardEvent(
SkikoKey.KEY_ESCAPE,
kind = SkikoKeyboardEventKind.DOWN,
platform = null
)
)
) || onKeyboardEvent(
)

val up = onKeyboardEvent(
KeyEvent(
SkikoKeyboardEvent(
SkikoKey.KEY_ESCAPE,
Expand All @@ -297,6 +299,8 @@ internal class ComposeSceneMediator(
)
)
)

down || up
}
)
}
Expand Down

0 comments on commit 3fc414f

Please sign in to comment.