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:
parent
729e89015f
commit
05fc865cbf
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user