1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Update pasteIntoField method (#14205)

This commit is contained in:
PeterYinusa 2022-03-25 14:23:18 +00:00 committed by GitHub
parent 729e89015f
commit 05fc865cbf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -274,7 +274,9 @@ class Driver {
await this.executeScript(
`navigator.clipboard.writeText("${contentToPaste}")`,
);
await this.fill(element, Key.chord(Key.CONTROL, 'v'));
const modifierKey =
process.platform === 'darwin' ? Key.COMMAND : Key.CONTROL;
await this.fill(element, Key.chord(modifierKey, 'v'));
}
// Navigation