aboutsummaryrefslogtreecommitdiffstats
path: root/src/virtualkeyboard/content/layouts/en_GB/digits.qml
diff options
context:
space:
mode:
Diffstat (limited to 'src/virtualkeyboard/content/layouts/en_GB/digits.qml')
-rw-r--r--src/virtualkeyboard/content/layouts/en_GB/digits.qml6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/virtualkeyboard/content/layouts/en_GB/digits.qml b/src/virtualkeyboard/content/layouts/en_GB/digits.qml
index 16eb1be8..5a59d3f3 100644
--- a/src/virtualkeyboard/content/layouts/en_GB/digits.qml
+++ b/src/virtualkeyboard/content/layouts/en_GB/digits.qml
@@ -100,8 +100,10 @@ KeyboardLayout {
text: "0"
}
Key {
- key: Qt.Key_Period
- text: "."
+ // The decimal key, if it is not "," then we fallback to
+ // "." in case it is an unhandled different result
+ key: Qt.locale().decimalPoint === "," ? Qt.Key_Comma : Qt.Key_Period
+ text: Qt.locale().decimalPoint === "," ? "," : "."
}
EnterKey {}
}