Skip to content

Commit

Permalink
Nit: Add "SPACE" to Keys example
Browse files Browse the repository at this point in the history
Otherwise, it's treated as a CharKey and looks like nothing
was typed when you press space.
  • Loading branch information
bitspittle committed Mar 8, 2023
1 parent 7190357 commit 0a5c4d8
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions examples/keys/src/main/kotlin/main.kt
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ fun main() = session {
Keys.PAGE_UP -> "PAGE_UP"
Keys.PAGE_DOWN -> "PAGE_DOWN"
Keys.TAB -> "TAB"
Keys.SPACE -> "SPACE"
is CharKey -> (key as CharKey).code.toString()
else -> "Unhandled key. Please report a bug!"
}
Expand Down

0 comments on commit 0a5c4d8

Please sign in to comment.