Bug 247334
Summary: | [GTK] Add support for changing text alignment | ||
---|---|---|---|
Product: | WebKit | Reporter: | Avid Seeker <avidseeker7> |
Component: | Forms | Assignee: | Nobody <webkit-unassigned> |
Status: | REOPENED | ||
Severity: | Normal | CC: | akeerthi, bfulgham, cdumez, mcatanzaro, mmaxfield, webkit-bug-importer, wenson_hsieh |
Priority: | P2 | Keywords: | InRadar |
Version: | WebKit Local Build | ||
Hardware: | Unspecified | ||
OS: | Unspecified |
Avid Seeker
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 | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Radar WebKit Bug Importer
<rdar://problem/102104955>
Brent Fulgham
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
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.