提交 56f8e78f 编写于 作者: R Romain Vimont

Merge pull request #542 from npes87184/dev

Return success count in injectText
......@@ -104,13 +104,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 injectMouse(int action, int buttons, Position position) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册