Version: 4.6 (using KDE 4.6.5) OS: Linux KDE users that uses several language in parallel, experience situations in which they type the wrong (intended) language into the focused input textbox (anywhere) and have to clear the "wrong-language" text, switch language and type it again. By displaying a faded language icon (symbol/flag) inside the focused input textbox, the user can immediately distinguish the current language and click the icon to change it (or key combination). The language icon (indication) can be faded inside the text input box and the text can overwrite it or it can be floating over the focused text box. I think that moving the language indicator/chooser into the input text box can improve usability. Kindly, Nadav :-) Reproducible: Didn't try Expected Results: By displaying a faded language icon (symbol/flag) inside the focused input textbox, the user can immediately distinguish the current language and click the icon to change it (or key combination). The language icon (indication) can be faded inside the text input box and the text can overwrite it or it can be floating over the focused text box.
Do you mean current keyboard layout?
yes. (current keyboard layout)
First we need a (cross-platform) method in kdelibs to query the keyboard server for the current layout. I am sure such code is in kxkbd, but I have no idea if it can be generalized and moved to kdelibs.
Can i "Hook" the onFocus event of any textbox and have an external "plugin" display that notification ? kde-wide. Or in other words... Is there an event the "Fires" when i click a textbox? that i can hook some external code too?
I doubt it. You might have luck with some specially crafted accessibility bridge, but my knowledge about those is void. Try asking in kde-core-devel mailing list.
there's dbus API that can be used to get current layout and receive notification when it's changed
I know i can use (cli) : qdbus org.kde.kxkb /kxkb org.kde.KXKB.getCurrentLayout to get the current layout. which is great. and i am currently trying to get some javascript binding to Firefox or Chrome http://sandbox.movial.com/wiki/index.php/Browser_DBus_Bridge Or something like : http://code.google.com/p/v8-dbus/ So i can display some kind on (flag?) notification near a textbox, that get user's focus, inside the browser. which suppose to be relatively easy. after i set the JS binding to DBUS. BUT, i would really like to HOOK onto the textbox class at the core of KDE (or QT) and maybe override it? to display what i wish.
org.kde.kxkb is deprecated you want to use org.kde.keyboard
Hi, kdelibs (version 4 and earlier) is no longer maintained since a few years. KDE Frameworks 5 or 6 might already have implemented this wish. 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