REOPENED Bug 247334
[GTK] Add support for changing text alignment
https://bugs.webkit.org/show_bug.cgi?id=247334
Summary [GTK] Add support for changing text alignment
Avid Seeker
Reported 2022-11-01 14:02:09 PDT
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="rtl";` in `<form>` tag. It only changes the direction "temporarily" for the user.
Attachments
Radar WebKit Bug Importer
Comment 1 2022-11-08 13:03:24 PST
Brent Fulgham
Comment 2 2022-12-12 09:33:16 PST
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 "MOVED".
Michael Catanzaro
Comment 3 2023-08-27 12:54:45 PDT
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't mentioned). So, let's reopen this and reassign to WebKitGTK. We surely don't expect WebKit clients to manually add custom keyboard shortcuts for reversing text alignment to every text entry (there'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.
Note You need to log in before you can comment on or make changes to this bug.