Bug 281263 - wish: display faded language icon on any input textbox that disappears when user start typing (move language indication into/above the input textbox)
Summary: wish: display faded language icon on any input textbox that disappears when u...
Status: REPORTED
Alias: None
Product: kdelibs
Classification: Frameworks and Libraries
Component: kdeui (show other bugs)
Version: unspecified
Platform: Debian unstable Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdelibs bugs
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-09-03 11:47 UTC by Nadav Kavalerchik
Modified: 2011-09-17 19:41 UTC (History)
2 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nadav Kavalerchik 2011-09-03 11:47:47 UTC
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.
Comment 1 Christoph Feck 2011-09-05 01:39:43 UTC
Do you mean current keyboard layout?
Comment 2 Nadav Kavalerchik 2011-09-05 13:07:11 UTC
yes.
(current keyboard layout)
Comment 3 Christoph Feck 2011-09-17 11:36:21 UTC
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.
Comment 4 Nadav Kavalerchik 2011-09-17 11:48:07 UTC
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?
Comment 5 Christoph Feck 2011-09-17 14:38:01 UTC
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.
Comment 6 Andriy Rysin 2011-09-17 17:32:28 UTC
there's dbus API that can be used to get current layout and receive notification when it's changed
Comment 7 Nadav Kavalerchik 2011-09-17 18:21:15 UTC
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.
Comment 8 Andriy Rysin 2011-09-17 19:41:18 UTC
org.kde.kxkb is deprecated you want to use org.kde.keyboard