mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-04-20 11:35:56 +00:00
fix:修复文本注入bug
This commit is contained in:
parent
fc4f03d48f
commit
a70905f68e
1 changed files with 5 additions and 3 deletions
|
@ -151,13 +151,15 @@ public class EventController {
|
|||
return true;
|
||||
}
|
||||
|
||||
private boolean injectText(String text) {
|
||||
private int injectText(String text) {
|
||||
int successCount = 0;
|
||||
for (char c : text.toCharArray()) {
|
||||
if (!injectChar(c)) {
|
||||
return false;
|
||||
continue;
|
||||
}
|
||||
successCount++;
|
||||
}
|
||||
return true;
|
||||
return successCount;
|
||||
}
|
||||
|
||||
private boolean injectTouch(int id, int action, Position position) {
|
||||
|
|
Loading…
Add table
Reference in a new issue