<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>127078</bug_id>
          
          <creation_ts>2014-01-15 17:55:54 -0800</creation_ts>
          <short_desc>Selection bias reversed when setting a range after left key down</short_desc>
          <delta_ts>2018-02-05 13:17:58 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>HTML Editing</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://jsfiddle.net/3Wpc8/</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Ben Davey">harrylepotter</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hello</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>968550</commentid>
    <comment_count>0</comment_count>
    <who name="Ben Davey">harrylepotter</who>
    <bug_when>2014-01-15 17:55:54 -0800</bug_when>
    <thetext>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 &quot;two&quot;. 
- hold shift and press the left arrow key
- observe that the offsets are reversed rather than the expected behavior (..decrementing the focusOffset)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1396494</commentid>
    <comment_count>1</comment_count>
    <who name="hello@yoavgivati.com">hello</who>
    <bug_when>2018-02-05 13:17:58 -0800</bug_when>
    <thetext>Is there any plan to fix this?</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>