Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Remove optimization not to follow keyboard state if not present
Context property includes both internal and external hardware
keyboard state. Thus, if keyboard wasn't connected during startup,
its state wasn't tracked.
  • Loading branch information
pvuorela committed Jul 21, 2015
1 parent 971a35e commit 294f6c8
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions maliit-framework/src/mimhwkeyboardtracker.cpp
Expand Up @@ -45,11 +45,9 @@ MImHwKeyboardTrackerPrivate::MImHwKeyboardTrackerPrivate(MImHwKeyboardTracker *q
present(false)
{
#ifdef HAVE_CONTEXTSUBSCRIBER
ContextProperty keyboardPresentProperty(keyboardPresent);
keyboardOpenProperty.reset(new ContextProperty(keyboardOpen));
keyboardPresentProperty.waitForSubscription(true);
keyboardOpenProperty->waitForSubscription(true);
present = keyboardPresentProperty.value().toBool();
present = true; // assume keyboard present as context property currently includes also external keyboards
if (present) {
QObject::connect(keyboardOpenProperty.data(), SIGNAL(valueChanged()),
q_ptr, SIGNAL(stateChanged()));
Expand Down

0 comments on commit 294f6c8

Please sign in to comment.