Fix focus being removed from the text input widget

Authored by Antonio Larrosa <antonio.larrosa@gmail.com> on Feb 22 2018, 7:32 PM.

Description

Fix focus being removed from the text input widget

Summary:
Each time a message is received, the focus was stolen from
the text input widget, which made it nearly impossible to write
some command to mycroft. This way we only remove the focus from
the widget when we really change its text.

Test Plan:
Write some text and notice the focus is constantly being removed
from the widget when the animation on the top of the plasmoid is animated.

After applying the patch, it allows to write text as expected.

Reviewers: Aiix

Reviewed By: Aiix

Subscribers: plasma-devel

Tags: Plasma

Differential Revision: https://phabricator.kde.org/D10752

Details

Committed
Antonio Larrosa <antonio.larrosa@gmail.com>Feb 22 2018, 7:53 PM
Reviewer
Aiix
Differential Revision
D10752: Fix focus being removed from the text input widget
Parents
R846:20de58c09c82: Add recipes feature delegates
Branches
Unknown
Tags
Unknown
Antonio Larrosa <antonio.larrosa@gmail.com> committed R846:307fa73adecf: Fix focus being removed from the text input widget (authored by Antonio Larrosa <antonio.larrosa@gmail.com>).Feb 22 2018, 7:53 PM