Plasmoid's TextField on Panel?

Marco Martin notmart at gmail.com
Thu Mar 2 09:34:12 UTC 2017


On Thursday 02 March 2017 05:35:02 Zoltan Gyarmati wrote:
> Dear All,
> 
> I'm developing a simple plasmoid which has a few TextFields (imported
> from org.kde.plasma.components 2.0) on it. When i add the plasmoid to
> the desktop or run it with plasmawindowed the TextField accepts the
> keyboard input as usual, but when i add the plasmoid to a Panel, it
> doesn't accept keyboard input anymore: if i click in it, the cursor
> appears in the TextField (and also my onFocusChanged handler is called),
> but when i press any key it won't appear in the TextField.
> Is it possible that a plasmoid placed on a Panel can't accept keyboard
> input?

when clicked on the text field in the panel you should set 
plasmoid.state=PlasmaCore.Types.AcceptingInputStatus
-- 
Marco Martin


More information about the Plasma-devel mailing list