Selecting with shift+drag results in unexpected drag-n-drop
Whenever user tries to extend an existing text selection by dragging the mouse (left button hold) with shift key pressed, Blink enters drag-n-drop mode. This behavior does not match common editing behavior out there, including other engines' (WebKit, Gecko/Firefox, Opera/Presto and IE). Patch changes Blink so that whenever one extends a selection with mouse and shift key pressed off of a #text node, it does not enter drag-n-drop mode. Additionally, patch also adds some further tests to ensure that when selection is extended off of either a link or an image, drag-n-drop does get triggered, no matter if shift key is pressed. Associated WebKit bug: https://bugs.webkit.org/show_bug.cgi?id=155314. BUG=142023 Review-Url: https://codereview.chromium.org/2048733002 Cr-Commit-Position: refs/heads/master@{#403315}
Showing
Please register or sign in to comment