Version: 4.7 (using KDE 4.7.1) OS: Linux When typing Hebrew text (RTL Mode), the "Clear Text" icon ("X>") is covering the beginning of the text (See attached screen capture) Please display the "Clear Text" icon justified to the left of the Input Text Box when in RTL mode. Where the text is typed from right to left. so the icon will not cover the text. Reproducible: Didn't try Steps to Reproduce: 1. Press Alt-F2 to open the krunner 2. Switch keyboard layout to Hebrew (Or Arabic) 3. Type some text 4. You will now see this issue. (Icon covers text) Actual Results: Text is not covered by "Clear text icon" Expected Results: Text should not covered by "Clear text icon" and if possible, justify the icon to the left side of the text input box
Created attachment 64537 [details] Hebrew text is covered with "Clear Text" icon Screen capture of this issue
Affects Arabic text too. From reading the code of KLineEdit it seems that when the text alignment is automatically changed(by entering RTL text such as Hebrew or Arabic) the function updateClearButton is not called. I'm running KDE 4.10.2, the bug is especially annoying when searching for non-latin contacts in a contact list.
Ah, you mean KDE is not set to RTL mode by default, but the widget only temporarily switches when RTL characters are entered?
Yes
*** Bug 322456 has been marked as a duplicate of this bug. ***
Git commit 7e663c8d11c306dffbf7e9ba32744a94f1e4bed9 by Christoph Feck. Committed on 23/07/2013 at 11:30. Pushed by cfeck into branch 'KDE/4.11'. Update clear button position on layout direction changes FIXED-IN: 4.11 M +4 -0 kdeui/widgets/klineedit.cpp http://commits.kde.org/kdelibs/7e663c8d11c306dffbf7e9ba32744a94f1e4bed9
*** Bug 280567 has been marked as a duplicate of this bug. ***
*** Bug 279052 has been marked as a duplicate of this bug. ***
Thank you for the fix, Chris!
The problem is still persistent on Plasma 5.20.2
Created attachment 133377 [details] RTL and clear icon Operating System: Manjaro Linux KDE Plasma Version: 5.20.2 KDE Frameworks Version: 5.75.0 Qt Version: 5.15.1 Kernel Version: 5.4.74-1-MANJARO OS Type: 64-bit
This problem seems to be fixed on Plasms 5.21.
(In reply to Omeritzics from comment #12) > This problem seems to be fixed on Plasms 5.21. Not completely resolved, it's just temporary (wrong) solution, the correct way RTL languages should be treated is to show clear icon at left and typing start from right, but now RTL are treated as LTR languages. The correct way to address this problem is to have the ability to change automatically the layout of textbox when focus is catched and according to current selected keyboard layout the layout of focused textbox will change to match RTL or LTR. It seems Okular (search) is the only that is implementing the correct solution, see attached video for more info.
Created attachment 138775 [details] Okular automatic RTL and LTR
Hi, kdelibs (version 4 and earlier) is no longer maintained since a few years. KDE Frameworks 5 or 6 might already have resolved this bug. If not, please re-open against the matching framework if feasible or against the application that shows the issue. We then can still dispatch it to the right Bugzilla product or component. Greetings Christoph Cullmann
(In reply to Christoph Cullmann from comment #15) > Hi, > > kdelibs (version 4 and earlier) is no longer maintained since a few years. > > KDE Frameworks 5 or 6 might already have resolved this bug. > > If not, please re-open against the matching framework if feasible or against > the application that shows the issue. > > We then can still dispatch it to the right Bugzilla product or component. > > Greetings > Christoph Cullmann The clear icon is fixed for now on Plasma 6.1.5. There is still a problem with how the text is aligned when you switch to Ara/Heb layout then start typing RTL text inside Plasma launcher, KRunner... the text is left aligned. But other apps like Okular, Konsole... right align typed RTL text in serch fields.