mirror of
https://github.com/Genymobile/scrcpy
synced 2025-08-31 14:25:56 +00:00
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:
@@ -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++;
|
||||||
|
Reference in New Issue
Block a user