mirror of
https://github.com/openstf/stf
synced 2025-10-04 18:29:17 +02:00
Use InputAgent for the keyboard.
This commit is contained in:
parent
30fdc62711
commit
bc9d356d7f
12 changed files with 323 additions and 83 deletions
|
@ -188,16 +188,49 @@ message TypeMessage {
|
|||
required string text = 1;
|
||||
}
|
||||
|
||||
enum KeyCode {
|
||||
HOME = 3;
|
||||
BACK = 4;
|
||||
BACKSPACE = 8;
|
||||
ENTER = 13;
|
||||
CAPS_LOCK = 20;
|
||||
ESC = 27;
|
||||
PAGE_UP = 33;
|
||||
PAGE_DOWN = 34;
|
||||
MOVE_END = 35;
|
||||
MOVE_HOME = 36;
|
||||
LEFT_ARROW = 37;
|
||||
UP_ARROW = 38;
|
||||
RIGHT_ARROW = 39;
|
||||
DOWN_ARROW = 40;
|
||||
INSERT = 45;
|
||||
DELETE = 46;
|
||||
MENU = 93;
|
||||
F1 = 112;
|
||||
F2 = 113;
|
||||
F3 = 114;
|
||||
F4 = 115;
|
||||
F5 = 116;
|
||||
F6 = 117;
|
||||
F7 = 118;
|
||||
F8 = 119;
|
||||
F9 = 120;
|
||||
F10 = 121;
|
||||
F11 = 122;
|
||||
F12 = 123;
|
||||
NUM_LOCK = 144;
|
||||
}
|
||||
|
||||
message KeyDownMessage {
|
||||
required uint32 key = 1;
|
||||
required KeyCode keyCode = 1;
|
||||
}
|
||||
|
||||
message KeyUpMessage {
|
||||
required uint32 key = 1;
|
||||
required KeyCode keyCode = 1;
|
||||
}
|
||||
|
||||
message KeyPressMessage {
|
||||
required uint32 key = 1;
|
||||
required KeyCode keyCode = 1;
|
||||
}
|
||||
|
||||
// Output
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue