<?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>196480</bug_id>
          
          <creation_ts>2019-04-01 20:34:26 -0700</creation_ts>
          <short_desc>Shift-arrow keys select in the wrong direction in an RTL input</short_desc>
          <delta_ts>2023-02-06 13:00:25 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          <see_also>https://bugs.webkit.org/show_bug.cgi?id=186465</see_also>
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Simon Fraser (smfr)">simon.fraser</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>dbates</cc>
    
    <cc>mitz</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1523204</commentid>
    <comment_count>0</comment_count>
      <attachid>366465</attachid>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-04-01 20:34:26 -0700</bug_when>
    <thetext>Created attachment 366465
Testcase

Load the attachment, type a bunch of text into the input, and then arrow around: the caret moves in the direction you expect. Now shift-arrow: the selection is extended in the wrong direction.

This works in Firefox.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1523205</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2019-04-01 20:36:33 -0700</bug_when>
    <thetext>&lt;rdar://problem/49507135&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1523228</commentid>
    <comment_count>2</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-04-01 21:59:59 -0700</bug_when>
    <thetext>Yeah, the selection is always extended in logical direction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1523344</commentid>
    <comment_count>3</comment_count>
    <who name="Simon Fraser (smfr)">simon.fraser</who>
    <bug_when>2019-04-02 10:18:50 -0700</bug_when>
    <thetext>That&apos;s really odd when arrow keys move the caret in the physical direction.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1523464</commentid>
    <comment_count>4</comment_count>
    <who name="Ryosuke Niwa">rniwa</who>
    <bug_when>2019-04-02 14:14:59 -0700</bug_when>
    <thetext>(In reply to Simon Fraser (smfr) from comment #3)
&gt; That&apos;s really odd when arrow keys move the caret in the physical direction.

To support extending / shirnking selection in visual direction, we need to support multi-range selection or weird stuff happens.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1931464</commentid>
    <comment_count>5</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-02-06 13:00:25 -0800</bug_when>
    <thetext>I am able to reproduce this in WebKit ToT (259906@main) and it matches with Chrome Canary 112 while Firefox Nightly 111 show caret in the end of the text and also Shift+Arrow keys also behave opposite of Safari &amp; Chrome.</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>366465</attachid>
            <date>2019-04-01 20:34:26 -0700</date>
            <delta_ts>2019-04-01 20:34:26 -0700</delta_ts>
            <desc>Testcase</desc>
            <filename>just-a-text-input.html</filename>
            <type>text/html</type>
            <size>217</size>
            <attacher name="Simon Fraser (smfr)">simon.fraser</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+Cgo8aHRtbD4KPGhlYWQ+CiAgICA8c3R5bGU+CiAgICAgICAgaW5wdXQg
ewogICAgICAgICAgICBtYXJnaW46IDEwMHB4OwogICAgICAgICAgICBmb250LXNpemU6IDI0cHQ7
CiAgICAgICAgICAgIGRpcmVjdGlvbjogcnRsOwogICAgICAgIH0KICAgIDwvc3R5bGU+CjwvaGVh
ZD4KPGJvZHk+CjxpbnB1dCB0eXBlPSJ0ZXh0Ij4KPC9ib2R5Pgo8L2h0bWw+Cg==
</data>

          </attachment>
      

    </bug>

</bugzilla>