aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tests/auto/inputpanel/data/inputpanel/inputpanel.qml11
1 files changed, 9 insertions, 2 deletions
diff --git a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
index 1113a268..685cc6c7 100644
--- a/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
+++ b/tests/auto/inputpanel/data/inputpanel/inputpanel.qml
@@ -289,14 +289,21 @@ InputPanel {
return Utils.findChild(keyboardLayoutLoader, key, function(obj, param) {
if (!obj.hasOwnProperty("key") || !obj.hasOwnProperty("text"))
return false
- return (typeof param == "number") ? obj.key === param : obj.text === param
+ return (typeof param == "number") ? obj.key === param : obj.text.toUpperCase() === param.toUpperCase()
})
}
function findVirtualKeyAlternative(key) {
if (typeof key != "string")
return null
- return Utils.findChildByProperty(keyboardLayoutLoader, "effectiveAlternativeKeys", key, function(propertyValue, key) { return propertyValue.indexOf(key) !== -1 })
+ return Utils.findChildByProperty(keyboardLayoutLoader, "effectiveAlternativeKeys", key.toUpperCase(),
+ function(propertyValue, key) {
+ if (typeof propertyValue == "string")
+ return propertyValue.toUpperCase().indexOf(key) !== -1
+ return propertyValue.filter(function(value) {
+ return key === value.toUpperCase()
+ }).length > 0
+ })
}
function findObjectByName(objectName) {