forked from chromium/chromium
-
-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Chromedriver] Support Command combined keys to do text editing on Mac
We are using ChromeDriver to simulate user inputs in tests, and when we are doing selecting all text by pressing cmd+a on Mac and ctrl+a on other platforms, copying text by pressing cmd+c on Mac and ctrl+c on other platforms, cutting text by pressing cmd+x on Mac and ctrl+x on other platforms, and pasting text by pressing cmd+v on Mac and ctrl+v on other platforms. Send text edit command to ForwardKeyboardEventWithCommands in Devtool InputHandler. Bug: chromedriver:3462 Change-Id: I4a77006235c161c67a1d18a37ccd6de5072c054a Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2228170 Reviewed-by: John Chen <[email protected]> Commit-Queue: Lan Wei <[email protected]> Cr-Commit-Position: refs/heads/master@{#783605}
- Loading branch information
Showing
3 changed files
with
123 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters