summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMarc Mutz <marc.mutz@kdab.com>2019-07-15 07:35:46 +0200
committerMarc Mutz <marc.mutz@kdab.com>2019-07-17 17:21:57 +0000
commita7d7f7155098d7c8e9d457ac411077b5d9121afb (patch)
tree860d5a7c8329bdf294ef53148af1958fb1c473c6 /src
parenteb9c5fd4f919592d58f35abfdf9907f1b180885c (diff)
QWasmEventTranslator: return Key_unknown, not 0x00, when a key isn't found
This matches what translateDeadKey() returns for unhandled keys, and processKeyboard() checks for when replacing qtKey with the result of translateDeadKey(). Change-Id: I1500576b7b31047a7a35633a15cd6975b77d842d Reviewed-by: Volker Hilsheimer <volker.hilsheimer@qt.io>
Diffstat (limited to 'src')
-rw-r--r--src/plugins/platforms/wasm/qwasmeventtranslator.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/platforms/wasm/qwasmeventtranslator.cpp b/src/plugins/platforms/wasm/qwasmeventtranslator.cpp
index d165ee5839..a34b957537 100644
--- a/src/plugins/platforms/wasm/qwasmeventtranslator.cpp
+++ b/src/plugins/platforms/wasm/qwasmeventtranslator.cpp
@@ -824,7 +824,7 @@ static Qt::Key find_impl(const KeyMapping *first, const KeyMapping *last, Qt::Ke
return first->to;
++first;
}
- return {};
+ return Qt::Key_unknown;
}
template <size_t N>