Open Bug 1582487 Opened 5 years ago Updated 2 years ago

Shift+upward_arrow key behaves weirdly when selecting and deselecting text

Categories

(Core :: DOM: Selection, defect, P3)

69 Branch
Desktop
All
defect

Tracking

()

Tracking Status
firefox69 --- affected
firefox70 --- affected
firefox71 --- affected

People

(Reporter: kumar, Unassigned)

Details

Attachments

(1 file)

Attached image firefox.gif

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:69.0) Gecko/20100101 Firefox/69.0

Steps to reproduce:

Actual results:

Texts are not getting deselected after pressing shift+upward_arrow key combination more than once. Only first time text gets deselected after that no text gets deselected no matter how many time I press shift+upward_arrow key and if number shift+upward_arrow key pressed is more than difference between initially selected and current line then it will start selecting text in upward direction (which is expected) but, without deselecting below text (which is unexpected).
I try to verify that whether FF only shows selected text incorrectly by copy & pasting the selected text but, found that FF copies exact same text as it's showing in blue colored line (selected text).

I've recorded a screen-cast which is attached below in which I press shift+upward_arrow key and copy & paste selected data to a snippet. And, in right hand side there is a box which shows keys I pressed.

I can reproduce this bug on Gitlab and many more websites. And even sometimes shift+downward_arrow key also behaves weirdly.

Expected results:

Text should get deselected as I press shift+upward_arrow key if current line is below initial selected line otherwise, start selecting text from just above the initially selected line.

Reproduced the issue on the following OS:

Windows 10 64bit
MacOs 10.14
Ubuntu 18.04 64bit

With all these Firefox versions:

Firefox Nightly release 71.0a1 : affected
Firefox Beta release 70.0b8 : affected
Firefox Release 69.0.1 : affected

-->selection
may be a duplicate of bug https://bugzilla.mozilla.org/show_bug.cgi?id=127884

Component: Untriaged → Selection
OS: Unspecified → All
Product: Firefox → Core
Hardware: Unspecified → Desktop
Priority: -- → P3
Status: UNCONFIRMED → NEW
Ever confirmed: true
Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: