diff options
author | Jarkko Koivikko <jarkko.koivikko@code-q.fi> | 2018-08-17 16:04:31 +0300 |
---|---|---|
committer | Mitch Curtis <mitch.curtis@qt.io> | 2018-08-17 13:33:08 +0000 |
commit | 51d91cef4e2b60e2e8702b7bf2d12ecef3fb7f3a (patch) | |
tree | 669168d7ebea3e11f83f660c6ce15e972834e311 | |
parent | 7ea308c8520a11471f1207a27b6b3414d7250da7 (diff) |
Add English US keyboard layout
[ChangeLog] Added English US keyboard layout
Change-Id: I02c54b5f31bfb757f3fb41fcc6c90341013a4fc3
Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
-rw-r--r-- | src/config.pri | 1 | ||||
-rw-r--r-- | src/plugins/lipi-toolkit/plugin/plugin.pro | 3 | ||||
-rw-r--r-- | src/plugins/myscript/plugin/plugin.pro | 3 | ||||
-rw-r--r-- | src/plugins/t9write/plugin/plugin.pro | 3 | ||||
-rw-r--r-- | src/virtualkeyboard/content/layouts/en_US/dialpad.fallback | 0 | ||||
-rw-r--r-- | src/virtualkeyboard/content/layouts/en_US/digits.fallback | 0 | ||||
-rw-r--r-- | src/virtualkeyboard/content/layouts/en_US/handwriting.fallback | 0 | ||||
-rw-r--r-- | src/virtualkeyboard/content/layouts/en_US/main.fallback | 0 | ||||
-rw-r--r-- | src/virtualkeyboard/content/layouts/en_US/numbers.fallback | 0 | ||||
-rw-r--r-- | src/virtualkeyboard/content/layouts/en_US/symbols.fallback | 0 | ||||
-rw-r--r-- | src/virtualkeyboard/virtualkeyboard.pro | 8 | ||||
-rw-r--r-- | tests/auto/inputpanel/data/tst_inputpanel.qml | 1 |
12 files changed, 16 insertions, 3 deletions
diff --git a/src/config.pri b/src/config.pri index aeb2361c..f44abec6 100644 --- a/src/config.pri +++ b/src/config.pri @@ -54,6 +54,7 @@ disable-layouts { lang-de_DE \ lang-el_GR \ lang-en_GB \ + lang-en_US \ lang-es_ES \ lang-et_EE \ lang-fa_FA \ diff --git a/src/plugins/lipi-toolkit/plugin/plugin.pro b/src/plugins/lipi-toolkit/plugin/plugin.pro index 5620b2a5..d6b6558d 100644 --- a/src/plugins/lipi-toolkit/plugin/plugin.pro +++ b/src/plugins/lipi-toolkit/plugin/plugin.pro @@ -36,7 +36,8 @@ INSTALLS += ltk_projects } LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/fallback/handwriting.qml -contains(CONFIG, lang-en.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_GB/handwriting.fallback +contains(CONFIG, lang-en(_GB)?): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_GB/handwriting.fallback +contains(CONFIG, lang-en(_US)?): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_US/handwriting.fallback contains(CONFIG, lang-id.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/id_ID/handwriting.fallback contains(CONFIG, lang-ms.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/ms_MY/handwriting.fallback contains(CONFIG, lang-nl.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/nl_NL/handwriting.fallback diff --git a/src/plugins/myscript/plugin/plugin.pro b/src/plugins/myscript/plugin/plugin.pro index 17c36fab..a478e2fe 100644 --- a/src/plugins/myscript/plugin/plugin.pro +++ b/src/plugins/myscript/plugin/plugin.pro @@ -48,7 +48,8 @@ INSTALLS += \ myscript_resources LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/fallback/handwriting.qml -contains(CONFIG, lang-en.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_GB/handwriting.fallback +contains(CONFIG, lang-en(_GB)?): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_GB/handwriting.fallback +contains(CONFIG, lang-en(_US)?): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_US/handwriting.fallback contains(CONFIG, lang-ar.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/ar_AR/handwriting.qml contains(CONFIG, lang-bg.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/bg_BG/handwriting.fallback contains(CONFIG, lang-cs.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/cs_CZ/handwriting.qml diff --git a/src/plugins/t9write/plugin/plugin.pro b/src/plugins/t9write/plugin/plugin.pro index 3a979783..d0bf0483 100644 --- a/src/plugins/t9write/plugin/plugin.pro +++ b/src/plugins/t9write/plugin/plugin.pro @@ -24,7 +24,8 @@ equals(T9WRITE_FOUND, 0): \ LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/fallback/handwriting.qml t9write-alphabetic { - contains(CONFIG, lang-en.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_GB/handwriting.fallback + contains(CONFIG, lang-en(_GB)?): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_GB/handwriting.fallback + contains(CONFIG, lang-en(_US)?): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/en_US/handwriting.fallback contains(CONFIG, lang-ar.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/ar_AR/handwriting.qml contains(CONFIG, lang-bg.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/bg_BG/handwriting.qml contains(CONFIG, lang-cs.*): LAYOUT_FILES += $$LAYOUTS_BASE/content/layouts/cs_CZ/handwriting.qml diff --git a/src/virtualkeyboard/content/layouts/en_US/dialpad.fallback b/src/virtualkeyboard/content/layouts/en_US/dialpad.fallback new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/virtualkeyboard/content/layouts/en_US/dialpad.fallback diff --git a/src/virtualkeyboard/content/layouts/en_US/digits.fallback b/src/virtualkeyboard/content/layouts/en_US/digits.fallback new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/virtualkeyboard/content/layouts/en_US/digits.fallback diff --git a/src/virtualkeyboard/content/layouts/en_US/handwriting.fallback b/src/virtualkeyboard/content/layouts/en_US/handwriting.fallback new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/virtualkeyboard/content/layouts/en_US/handwriting.fallback diff --git a/src/virtualkeyboard/content/layouts/en_US/main.fallback b/src/virtualkeyboard/content/layouts/en_US/main.fallback new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/virtualkeyboard/content/layouts/en_US/main.fallback diff --git a/src/virtualkeyboard/content/layouts/en_US/numbers.fallback b/src/virtualkeyboard/content/layouts/en_US/numbers.fallback new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/virtualkeyboard/content/layouts/en_US/numbers.fallback diff --git a/src/virtualkeyboard/content/layouts/en_US/symbols.fallback b/src/virtualkeyboard/content/layouts/en_US/symbols.fallback new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/src/virtualkeyboard/content/layouts/en_US/symbols.fallback diff --git a/src/virtualkeyboard/virtualkeyboard.pro b/src/virtualkeyboard/virtualkeyboard.pro index df40c9e6..b2b3d3f4 100644 --- a/src/virtualkeyboard/virtualkeyboard.pro +++ b/src/virtualkeyboard/virtualkeyboard.pro @@ -85,6 +85,14 @@ contains(CONFIG, lang-en(_GB)?) { content/layouts/en_GB/numbers.fallback \ content/layouts/en_GB/symbols.fallback } +contains(CONFIG, lang-en(_US)?) { + LAYOUT_FILES += \ + content/layouts/en_US/dialpad.fallback \ + content/layouts/en_US/digits.fallback \ + content/layouts/en_US/main.fallback \ + content/layouts/en_US/numbers.fallback \ + content/layouts/en_US/symbols.fallback +} contains(CONFIG, lang-ar.*) { LAYOUT_FILES += \ content/layouts/ar_AR/dialpad.fallback \ diff --git a/tests/auto/inputpanel/data/tst_inputpanel.qml b/tests/auto/inputpanel/data/tst_inputpanel.qml index f28de423..3ce9bbd3 100644 --- a/tests/auto/inputpanel/data/tst_inputpanel.qml +++ b/tests/auto/inputpanel/data/tst_inputpanel.qml @@ -331,6 +331,7 @@ Rectangle { { initLocale: "de_DE", initInputMethodHints: Qt.ImhNoPredictiveText, inputSequence: "hallo", outputText: "Hallo" }, { initLocale: "el_GR", initInputMethodHints: Qt.ImhNoPredictiveText, inputSequence: "\u03C7\u03B1\u03AF\u03C1\u03B5\u03C4\u03B5", outputText: "\u03A7\u03B1\u03AF\u03C1\u03B5\u03C4\u03B5" }, { initLocale: "en_GB", initInputMethodHints: Qt.ImhNoPredictiveText, inputSequence: "hello", outputText: "Hello" }, + { initLocale: "en_US", initInputMethodHints: Qt.ImhNoPredictiveText, inputSequence: "hello", outputText: "Hello" }, { initLocale: "es_ES", initInputMethodHints: Qt.ImhNoPredictiveText, inputSequence: "hola", outputText: "Hola" }, { initLocale: "et_EE", initInputMethodHints: Qt.ImhNoPredictiveText, inputSequence: "tere", outputText: "Tere" }, { initLocale: "hi_IN", initInputMethodHints: Qt.ImhNoPredictiveText, inputSequence: "\u0928\u092E\u0938\u094D\u0915\u093E\u0930", outputText: "\u0928\u092E\u0938\u094D\u0915\u093E\u0930" }, |