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:
parent
56f8e78f58
commit
3068457b90
1 changed files with 1 additions and 0 deletions
|
@ -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++;
|
||||
|
|
Loading…
Reference in a new issue