Skip to content

Commit

Permalink
fix: use the appropriate modifier for windows and linux (#183)
Browse files Browse the repository at this point in the history
* fix: use ctrl button modifier for windows and linux

* fix: use command only
  • Loading branch information
mondaychen authored Jun 1, 2024
1 parent 9128c67 commit 6a9f745
Showing 1 changed file with 0 additions and 5 deletions.
5 changes: 0 additions & 5 deletions src/helpers/rpc/domActions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,13 +98,8 @@ export class DomActions {
}

private async selectAllText() {
// TODO: on other OSes, use the appropriate modifier
const metaModifier = 4;
// send command to select all
await this.sendCommand("Input.dispatchKeyEvent", {
type: "keyDown",
modifiers: metaModifier,
text: "A",
commands: ["selectAll"],
});
await sleep(200);
Expand Down

0 comments on commit 6a9f745

Please sign in to comment.