* Right click on the mouse position.
(x?: number, y?: number)
| 296 | * Right click on the mouse position. |
| 297 | */ |
| 298 | async rightClick(x?: number, y?: number): Promise<void> { |
| 299 | if (x && y) { |
| 300 | await this.moveMouse(x, y) |
| 301 | } |
| 302 | |
| 303 | await this.commands.run('xdotool click 3') |
| 304 | } |
| 305 | |
| 306 | /** |
| 307 | * Middle click on the mouse position. |