New issue
Advanced search Search tips

Issue 630407 link

Starred by 4 users

Issue metadata

Status: Duplicate
Merged: issue 447339
Owner:
Closed: Jul 2016
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: ----
Pri: 3
Type: Bug



Sign in to add a comment

Ctrl+shift arrow word selection should behave well with underscores

Project Member Reported by l...@chromium.org, Jul 21 2016

Issue description

Version: 51.0.2704.106
OS: Linux

What steps will reproduce the problem?
(1) In any input field, type "abc._def"
(2) With the cursor at the end, press Ctrl+Shift+Left

What is the expected output?
I would expect that only "_def" is selected.  When the cursor is at the beginning and I press Ctrl+Shift+Right I get "abc", so I expected something similar from the right

What do you see instead?
Entire text "abc._def" is selected


I particularly want this behavior so that in the DevTools console, I could easily extract just a property name after entering something like "instance.property" using the shortcut I'm used to.  Is this something we can change for all inputs, or something that developers should tailor for their input fields?

Note, in Firefox, word selection from the right catches "def", while selection from the left catches "abc._"
 
Owner: xiaoche...@chromium.org
Status: Assigned (was: Untriaged)
Seems to be related to word boundary finding. I'm taking it for now.
Status: Started (was: Assigned)
Patch uploaded: crrev.com/2192763002

Comment 3 by tkent@chromium.org, Jul 28 2016

Components: -UI
Is this a dupe of Issue 447339?

Comment 4 by l...@chromium.org, Jul 28 2016

Summary: Ctrl+shift arrow word selection should behave well with underscores (was: Ctrl+shift arrow word selection should break on periods)
Good call tkent@, I think this is a dupe.  Periods are fine, it's really the underscores that this bug is about.

xiaochengh@ feel free to merge with 447339
Mergedinto: 447339
Status: Duplicate (was: Started)
Yeah, it is a dup. Merged.

Comment 6 by tkent@chromium.org, Oct 12 2016

Components: -Blink>TextSelection Blink>Editing>Selection

Sign in to add a comment