|
Download docs/reference/focus.md from AUXteam/pinch: direct link, hf CLI and curl.
- Browser
- Download file 419 Bytes
-
https://huggingface.co/spaces/AUXteam/pinch/resolve/main/docs/reference/focus.md
- Command line
-
hf download hf://spaces/AUXteam/pinch/docs/reference/focus.md
-
curl -L -o focus.md https://huggingface.co/spaces/AUXteam/pinch/resolve/main/docs/reference/focus.md
419 Bytes
| # Focus | |
| Move focus to an element by ref. | |
| ```bash | |
| curl -X POST http://localhost:9867/action \ | |
| -H "Content-Type: application/json" \ | |
| -d '{"kind":"focus","ref":"e8"}' | |
| # CLI Alternative | |
| pinchtab focus e8 | |
| # Response | |
| { | |
| "success": true, | |
| "result": { | |
| "success": true | |
| } | |
| } | |
| ``` | |
| This is useful before keyboard-only flows such as `press Enter` or `type`. | |
| ## Related Pages | |
| - [Press](./press.md) | |
| - [Type](./type.md) | |