mirror of
https://github.com/priyanshujain/sanderling.git
synced 2026-10-02 19:17:10 +00:00
feat(driver): add escape to the pressKey surface
escape is a key a spec has real use for and no platform could send it. android maps it to KEYCODE_ESCAPE, the ios companion to HID usage 41 and the in-simulator runner to XCUIKeyboardKey.escape, and the Key union accepts it so it can be written at all.
This commit is contained in:
1 parent
4b7a3878ac
commit
da3cc5f68c
12 files changed
+106
-10
No files matched your search
@@ -623,8 +623,8 @@ func (x *SwipeRequest) GetDurationMillis() int64 {
|
||||
|
||||
type PressKeyRequest struct {
|
||||
state protoimpl.MessageState `protogen:"open.v1"`
|
||||
// Logical key name. Supported: "back", "home", "enter", "tab", "up",
|
||||
// "down", "left", "right".
|
||||
// Logical key name. Supported: "back", "home", "enter", "tab", "escape",
|
||||
// "up", "down", "left", "right".
|
||||
Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
|
||||
unknownFields protoimpl.UnknownFields
|
||||
sizeCache protoimpl.SizeCache
|
||||
|
||||
@@ -95,8 +95,8 @@ message SwipeRequest {
|
||||
}
|
||||
|
||||
message PressKeyRequest {
|
||||
// Logical key name. Supported: "back", "home", "enter", "tab", "up",
|
||||
// "down", "left", "right".
|
||||
// Logical key name. Supported: "back", "home", "enter", "tab", "escape",
|
||||
// "up", "down", "left", "right".
|
||||
string key = 1;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user