From 3068457b901964cacd57405decd5852a1d1ce8fe Mon Sep 17 00:00:00 2001 From: Romain Vimont Date: Mon, 20 May 2019 08:33:41 +0200 Subject: [PATCH] Log characters failed to be injected Some characters may not be injected (e.g. '\r`). Log them instead of ignoring them silently. --- server/src/main/java/com/genymobile/scrcpy/EventController.java | 1 + 1 file changed, 1 insertion(+) diff --git a/server/src/main/java/com/genymobile/scrcpy/EventController.java b/server/src/main/java/com/genymobile/scrcpy/EventController.java index 87aee61b..9885e04b 100644 --- a/server/src/main/java/com/genymobile/scrcpy/EventController.java +++ b/server/src/main/java/com/genymobile/scrcpy/EventController.java @@ -108,6 +108,7 @@ public class EventController { int successCount = 0; for (char c : text.toCharArray()) { if (!injectChar(c)) { + Ln.w("Could not inject char u+" + String.format("%04x", (int) c)); continue; } successCount++;