KModifierKeyInfo usage and API

Bhushan Shah bhush94 at gmail.com
Sun Nov 10 11:26:19 UTC 2013


Hello!

It looks like keystate applet which was removed from KDE4 was(?) the
user of keystate dataengine. If we bring back this applet in Plasma2
then this DataEngine will be used. And this applet is necessary for
disabled people, See https://bugs.kde.org/show_bug.cgi?id=165402

Thanks!

On Sun, Nov 10, 2013 at 2:46 PM, David Faure <faure at kde.org> wrote:
> Aaron?
>
> Anyone from the plasma team?
>
> I would appreciate input on this (see precise question at the end),
> it's preventing KF5 from moving forward with KModifierKeyInfo.
>
> Please CC kde-frameworks-devel, I'm not on plasma-devel.
>
> On Wednesday 16 October 2013 09:56:03 David Faure wrote:
>> We are still a bit unsure what to do about KModifierKeyInfo in KF5:
>>
>> * It's currently only implemented on X11
>> (PovAddict says querying for modifiers on Windows is easy to add, but
>> getting notified of changes seems quite problematic)
>>
>> * The API (latching vs locking) seems to be a bit too X11 specific, it's
>> unsure that these concepts exist on other platforms
>> (issue raised in http://git.reviewboard.kde.org/r/112443/#review41013)
>>
>> * gwenview was ported away from it (a simple keyPress handler takes care of
>> notifying the app that Ctrl was pressed)
>>
>> * This leaves two users for KModifierKeyInfo as far as lxr.kde.org can see:
>>
>> 1) kile uses it to query the status of Caps Lock at the time when a key is
>> pressed. It uses isKeyLatched()||isKeyLocked() so clearly it doesn't need
>> the distinction.
>>
>> 2) Plasma's KeyService offers the KModifierKeyInfo API in the
>> KeyStatesEngine. Not sure how to then find the users of that.... general
>> search on keystate found this:
>> http://lxr.kde.org/source/kde/kdeplasma-addons/applets/plasmaboard/widget.cpp
>> but I can't find the actual use of the engine in there?
>> Can a plasma developer tell me how to find the use of this stuff, to see how
>> much we can change its API? Thanks.
>
> --
> David Faure, faure at kde.org, http://www.davidfaure.fr
> Working on KDE, in particular KDE Frameworks 5
>
> _______________________________________________
> Kde-frameworks-devel mailing list
> Kde-frameworks-devel at kde.org
> https://mail.kde.org/mailman/listinfo/kde-frameworks-devel


More information about the Kde-frameworks-devel mailing list