Bug 127078

Summary: Selection bias reversed when setting a range after left key down
Product: WebKit Reporter: Ben Davey <harrylepotter>
Component: HTML EditingAssignee: Nobody <webkit-unassigned>
Status: NEW    
Severity: Normal CC: hello
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: All   
OS: All   
URL: http://jsfiddle.net/3Wpc8/

Ben Davey
Reported 2014-01-15 17:55:54 PST
If you try to change the selection between a Shift + Left key down and Left key up event, the selection bias is reversed (i.e. anchorOffset/focusOffset are switched) This appears to be a bug in webkit derived browsers only, and does not appear to happen on Internet explorer or firefox. A demonstration can be found at: http://jsfiddle.net/3Wpc8/ To reproduce the bug: -open the jsfiddle, and select the word "two". - hold shift and press the left arrow key - observe that the offsets are reversed rather than the expected behavior (..decrementing the focusOffset)
Attachments
hello@yoavgivati.com
Comment 1 2018-02-05 13:17:58 PST
Is there any plan to fix this?
Note You need to log in before you can comment on or make changes to this bug.