New issue
Advanced search Search tips

Issue 797833 link

Starred by 2 users

Issue metadata

Status: WontFix
Owner: ----
Closed: Jan 2018
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Mac
Pri: 2
Type: Bug



Sign in to add a comment

Home and Shift+Home don't behave the same way

Reported by ngzh...@gmail.com, Dec 28 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_12_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/62.0.3202.94 Safari/537.36

Steps to reproduce the problem:
1.  go to any text field input
2. have random paragraphs of text
3. position your cursor in the middle of all the text (so that there is text before, after, below, above the cursor)

What is the expected behavior?

What went wrong?
Press Home, cursor goes to the start of current line.
Go back to the same place the cursor was.
Press Shift+Home, cursor goes to the start of the whole input, highlighting everything till there.
I would expect Shift+Home to highlight to the start of current line, since that's what pressing Home does.

Did this work before? N/A 

Chrome version: 62.0.3202.94  Channel: stable
OS Version: OS X 10.12.6
Flash Version:
 
Labels: Needs-Triage-M63
Labels: -Needs-Triage-M63 Needs-Milestone
Components: -UI Blink>Editing
Status: Untriaged (was: Unconfirmed)
Is there any sample text or page to reproduce?

Comment 5 by ngzh...@gmail.com, Jan 9 2018

Sure, on this page [0], scroll to the bottom, under "Add a comment", there is a text box. Copy and paste the following paragraph

a b c
d e f

1. position your cursor at "f"
2. press Home
3. observe that cursor goes to before "d"
4. position your cursor at "f"
5. press Shift+Home
6. observe that the cursor is now before "a", and everything from "a" to "f" is highlighted

[0] https://bugs.chromium.org/p/chromium/issues/detail?id=797833

Comment 6 by yosin@chromium.org, Jan 9 2018

Components: -Blink>Editing Blink>Editing>Command
Status: WontFix (was: Untriaged)
It seems Shift+HOme is assigned to  moveToBeginningOfParagraphAndModifySelection on MacOS.
This page[1] might help current key bindings.


I could not reproduce this on Win and Linux:
third_party/WebKit/Source/core/editing/EditingBehavior.cpp:
    {VKEY_HOME, 0, "MoveToBeginningOfLine"},
    {VKEY_HOME, kShiftKey, "MoveToBeginningOfLineAndModifySelection"},

[1] http://osxnotes.net/keybindings.html

Sign in to add a comment