forked from chromium/chromium
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Views UI: Improve middle-click pasting onto selected text behavior.
Previously, there was special-case code for middle-click pasting onto selected text. This special-case code existed to try to emulate the middle-click paste behavior of gedit. However, gedit has some confusing behaviors. This CL modifies middle-click pasting in the following ways: 1. Middle-click pasting onto a selection now pastes the contents of the PRIMARY (selection) clipboard at the cursor position. 2. The PRIMARY (selection) clipboard is no longer cleared after middle-clicking. 3. This makes middle-click on UI surfaces like the Omnibox behave the same way as HTML text fields, which is a bonus. BUG=364676 Review-Url: https://codereview.chromium.org/2826843002 Cr-Commit-Position: refs/heads/master@{#465775}
- Loading branch information
tommycli
authored and
Commit bot
committed
Apr 19, 2017
1 parent
0bcba70
commit 54ba8b4
Showing
2 changed files
with
14 additions
and
18 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