Bug 127078
| Summary: | Selection bias reversed when setting a range after left key down | ||
|---|---|---|---|
| Product: | WebKit | Reporter: | Ben Davey <harrylepotter> |
| Component: | HTML Editing | Assignee: | 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
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 | ||
|---|---|---|
| Add attachment proposed patch, testcase, etc. |
hello@yoavgivati.com
Is there any plan to fix this?