( x: number, y: number, button: ClickButton, )
| 287 | } |
| 288 | |
| 289 | async function runLinuxAlternateClick( |
| 290 | x: number, |
| 291 | y: number, |
| 292 | button: ClickButton, |
| 293 | ): Promise<Record<string, unknown>> { |
| 294 | if (button === 'secondary') { |
| 295 | const { rightClickLinux } = await import('../platforms/linux/input-actions.ts'); |
| 296 | await rightClickLinux(x, y); |
| 297 | } else { |
| 298 | const { middleClickLinux } = await import('../platforms/linux/input-actions.ts'); |
| 299 | await middleClickLinux(x, y); |
| 300 | } |
| 301 | return { |
| 302 | x, |
| 303 | y, |
| 304 | button, |
| 305 | ...successText(formatPressMessage({ x, y, button })), |
| 306 | }; |
| 307 | } |
| 308 | |
| 309 | function readPressSeriesOptions(context: DispatchContext | undefined): PressSeriesOptions { |
| 310 | return { |
no test coverage detected