Log characters failed to be injected

Some characters may not be injected (e.g. '\r`). Log them instead of
ignoring them silently.
master
Romain Vimont 7 years ago
parent 56f8e78f58
commit 3068457b90

@ -108,6 +108,7 @@ public class EventController {
int successCount = 0; int successCount = 0;
for (char c : text.toCharArray()) { for (char c : text.toCharArray()) {
if (!injectChar(c)) { if (!injectChar(c)) {
Ln.w("Could not inject char u+" + String.format("%04x", (int) c));
continue; continue;
} }
successCount++; successCount++;

Loading…
Cancel
Save