diff options
author | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2018-08-18 03:02:03 +0200 |
---|---|---|
committer | Qt Forward Merge Bot <qt_forward_merge_bot@qt-project.org> | 2018-08-18 03:02:04 +0200 |
commit | 9463ad7c01c8cda0af27d9ec0692a61af171d29e (patch) | |
tree | 0771c493bf16cf12e5af5dcafffe694a63bd3a3c /src/virtualkeyboard/inputcontext.cpp | |
parent | 495c35503d2f72f6f0a606582785e7a7af7c7038 (diff) | |
parent | d8906c5f36540baef2886e5c6f5b7b4199525f5c (diff) |
Merge remote-tracking branch 'origin/5.11' into dev
Change-Id: I15908fcb9247feb82521faf092f93f0bde546ae0
Diffstat (limited to 'src/virtualkeyboard/inputcontext.cpp')
-rw-r--r-- | src/virtualkeyboard/inputcontext.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/virtualkeyboard/inputcontext.cpp b/src/virtualkeyboard/inputcontext.cpp index 8635e514..493f68e6 100644 --- a/src/virtualkeyboard/inputcontext.cpp +++ b/src/virtualkeyboard/inputcontext.cpp @@ -443,7 +443,7 @@ void InputContext::sendKeyClick(int key, const QString &text, int modifiers) if (d->focus && d->inputContext) { QKeyEvent pressEvent(QEvent::KeyPress, key, Qt::KeyboardModifiers(modifiers), text); QKeyEvent releaseEvent(QEvent::KeyRelease, key, Qt::KeyboardModifiers(modifiers), text); - VIRTUALKEYBOARD_DEBUG() << "InputContext::::sendKeyClick():" << key; + VIRTUALKEYBOARD_DEBUG() << "InputContext::sendKeyClick():" << key; d->stateFlags |= InputContextPrivate::KeyEventState; d->inputContext->sendKeyEvent(&pressEvent); @@ -451,7 +451,8 @@ void InputContext::sendKeyClick(int key, const QString &text, int modifiers) if (d->activeKeys.isEmpty()) d->stateFlags &= ~InputContextPrivate::KeyEventState; } else { - qWarning() << "InputContext::::sendKeyClick():" << key << "no focus"; + qWarning() << "InputContext::sendKeyClick(): no focus to send key click" << key << text + << "- QGuiApplication::focusWindow() is:" << QGuiApplication::focusWindow(); } } |