send_keys
Sends raw OS-level keystrokes (Enter, Esc, Tab, arrows, shortcuts) to the focused 1C client window via xdotool XTEST. Use for controls needing genuine OS keys when protocol tools can't help.
Instructions
Send raw OS keystrokes (Enter / Esc / Tab / arrows / shortcuts) to the focused 1C client window. 1C keyboard
input is OS-LEVEL (the key is in NO manager->client protocol frame), so raw keys are delivered via XTEST
(xdotool) into the client window. Same primitive as write_form_value_xtest's DB-verified Tab/Ctrl+S.
keys is a sequence of xdotool key specs sent in order (["Down", "Down", "Return"], ["Escape"],
["ctrl+s"], ["Tab"]…). Keys go to the FOCUSED window (the launched client is the lone app window), so
PREREQ: launch the client with launch_test_client(display=":89", port=…) + a window manager (matchbox);
display must be that Xvfb. Most keyboard INTENTS already have a protocol tool — confirm/cancel dialogs
(answer_dialog), field commit (Tab / focus-change), row navigation (select_table_row / read_list_grid),
save (click_command «Записать») — use those first; send_keys is the raw-key escape hatch for controls that
need genuine OS keys. Returns {keys, display, sent}.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| keys | Yes | ||
| display | No | :89 | |
| settle_sec | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||