Skip to content
This repository has been archived by the owner on Mar 26, 2024. It is now read-only.

Commit

Permalink
PRJ-56 Fix special keys
Browse files Browse the repository at this point in the history
  • Loading branch information
SerVB committed Jun 25, 2020
1 parent 2286197 commit 9e6295a
Showing 1 changed file with 1 addition and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -276,10 +276,7 @@ class ProjectorServer private constructor(
is ClientKeyEvent -> {
val keyEventType = message.keyEventType.toAwtKeyEventId()

val key = message.key.toJavaCharOrNull() ?: run {
logger.error { "$message: unknown key, skipping" }
return
}
val key = message.key.singleOrNull() ?: KeyEvent.CHAR_UNDEFINED
val code = message.code.toJavaCodeOrNull() ?: run {
logger.error { "$message: unknown code, skipping" }
return
Expand Down

0 comments on commit 9e6295a

Please sign in to comment.