diff options
author | Szabolcs David <davidsz@inf.u-szeged.hu> | 2023-01-30 18:21:48 +0100 |
---|---|---|
committer | Szabolcs David <davidsz@inf.u-szeged.hu> | 2023-02-15 13:19:29 +0100 |
commit | 47564e329a71fed8b73be403bbdc30fbf684f7a4 (patch) | |
tree | 16ad3d22d7e301ed2458732eaafbdc9e2c5542ea /src/core/web_contents_adapter.h | |
parent | 552f941ec35987b643dac0fdb8a323366bf4e3d0 (diff) |
Support LTR and RTL text directions in input fields
Implement WebActions to temporarily change text direction directly from
context menu - like Chrome does. They only work for the selected input
field. Omit the "default" option since it is always grayed out in Chrome.
Task-number: QTWB-67
Change-Id: I4bacbd82c6bd7261ac465eec9da3776613f98074
Reviewed-by: Allan Sandfeld Jensen <allan.jensen@qt.io>
Diffstat (limited to 'src/core/web_contents_adapter.h')
-rw-r--r-- | src/core/web_contents_adapter.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/core/web_contents_adapter.h b/src/core/web_contents_adapter.h index 1f2f08d73..0a97fde56 100644 --- a/src/core/web_contents_adapter.h +++ b/src/core/web_contents_adapter.h @@ -201,6 +201,7 @@ public: bool hasFocusedFrame() const; void resetSelection(); void resetTouchSelectionController(); + void changeTextDirection(bool leftToRight); // meant to be used within WebEngineCore only void initialize(content::SiteInstance *site); |