feat(proto): add EraseText RPC for InputText replace semantics

This commit is contained in:
pj committed 2026-06-05 17:40:09 +05:30
1 parent 0f448e5e49
commit 72055e5d9f
4 files changed
+190 -90

No files matched your search

+7
View File
@@ -13,6 +13,9 @@ service Driver {
rpc Tap(Point) returns (Empty);
rpc TapSelector(Selector) returns (Empty);
rpc InputText(Text) returns (Empty);
// EraseText deletes characters from the focused field so InputText can
// replace existing content instead of appending to it.
rpc EraseText(EraseTextRequest) returns (Empty);
rpc Swipe(SwipeRequest) returns (Empty);
rpc PressKey(PressKeyRequest) returns (Empty);
rpc LongPress(Point) returns (Empty);
@@ -47,6 +50,10 @@ message Text {
string value = 1;
}
message EraseTextRequest {
int32 character_count = 1;
}
message Selector {
string value = 1;
}