Log characters failed to be injected

Some characters may not be injected (e.g. '\r`). Log them instead of
ignoring them silently.
This commit is contained in:
Romain Vimont 2019-05-20 08:33:41 +02:00
parent 56f8e78f58
commit 3068457b90

View file

@ -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++;