<?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>247334</bug_id>
          
          <creation_ts>2022-11-01 14:02:09 -0700</creation_ts>
          <short_desc>[GTK] Add support for changing text alignment</short_desc>
          <delta_ts>2023-08-27 12:54:45 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>Forms</component>
          <version>WebKit Local Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <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="Avid Seeker">avidseeker7</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>akeerthi</cc>
    
    <cc>bfulgham</cc>
    
    <cc>cdumez</cc>
    
    <cc>mcatanzaro</cc>
    
    <cc>mmaxfield</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>wenson_hsieh</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1909625</commentid>
    <comment_count>0</comment_count>
    <who name="Avid Seeker">avidseeker7</who>
    <bug_when>2022-11-01 14:02:09 -0700</bug_when>
    <thetext>Browsers like Firefox and Chromium (on Windows) have support for temporarily change text alignment of text boxes, typically by press RCtrl+RShift or LCtrl+LShift or by Ctrl+Shift+X to toggle alignment on Firefox Linux.

This feature (toggling RTL, LTR directions) is essential for Bidi support.

To clarify, this is not the same as setting attribute `direction=&quot;rtl&quot;;` in `&lt;form&gt;` tag. It only changes the direction &quot;temporarily&quot; for the user.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1911067</commentid>
    <comment_count>1</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2022-11-08 13:03:24 -0800</bug_when>
    <thetext>&lt;rdar://problem/102104955&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1918507</commentid>
    <comment_count>2</comment_count>
    <who name="Brent Fulgham">bfulgham</who>
    <bug_when>2022-12-12 09:33:16 -0800</bug_when>
    <thetext>This seems to be a request for the Safari Web Browser, not for a feature of the WebKit engine. Passing this over to the Safari team and resolving as &quot;MOVED&quot;.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1973831</commentid>
    <comment_count>3</comment_count>
    <who name="Michael Catanzaro">mcatanzaro</who>
    <bug_when>2023-08-27 12:54:45 -0700</bug_when>
    <thetext>So, with additional context from https://gitlab.gnome.org/GNOME/epiphany/-/issues/2164, this is actually a Linux user, not a Safari user (but you had no way to know because, this wasn&apos;t mentioned). So, let&apos;s reopen this and reassign to WebKitGTK.

We surely don&apos;t expect WebKit clients to manually add custom keyboard shortcuts for reversing text alignment to every text entry (there&apos;s no straightforward way for applications to do that anyway), so that needs to be handled by WebKit itself. I guess applications could do it if WebKit were to provide a new editing command, but if WebKit is going to provide that, it might as well hook up a standard keyboard shortcut, same as it does for Cut, Copy, Paste, Undo, etc.

In the Epiphany bug there is an additional suggestion to add a context menu item. That would require exposing a new WebKitContextMenuAction.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>