aboutsummaryrefslogtreecommitdiffstats
path: root/tests/auto/inputpanel/data/tst_inputpanel.qml
Commit message (Collapse)AuthorAgeFilesLines
* Fix cursor position in Japanese inputJanne Myöhänen2020-06-231-0/+33
| | | | | | | | | | | Fix cursor position in Japanese input when suggestion is selected. The selected text is set as preedit text just before committing. Fixes: QTBUG-74664 Change-Id: I7d1dd35fad8b844f5849c3006145c69792ce8725 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io> (cherry picked from commit 5760593c66928c77b193a8502b8433e122980bc1) Reviewed-by: Qt Cherry-pick Bot <cherrypick_bot@qt-project.org>
* t9write: Add Thai handwriting recognitionJarkko Koivikko2018-10-111-0/+1
| | | | | | | [ChangeLog] Added Thai handwriting recognition (T9 Write). Change-Id: Idb34fcf07d0318bbca6e6573e5859edb375f205f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Qtify new APIMitch Curtis2018-09-271-2/+2
| | | | | | | | | | | | | | | Add "is" to C++ getter functions returning bool (where applicable). Add "Active" to "shift" and "capsLock" QML properties, etc. By making these names more explicit, it's clearer what they do and also future-proofs the API by allowing us to add related properties in the future if necessary. [ChangeLog][InputContext] Deprecated shift and capsLock properties in favor of shiftActive and capsLockActive. Change-Id: I66f2c85b50622a6e5fe6b25fb24f13be27acaf9d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Enable layout mirroring for word candidate listJarkko Koivikko2018-09-071-0/+38
| | | | | | | | | | | | | | Change 4a92afe75bfb7886ecb1b3282b05b2985c39fe3c disabled layout mirroring for virtual keyboard. This change enables layout mirroring for word candidate list. Changes to navigation cursor logic are necessary, so that navigation cursor follows text direction. Task-number: QTBUG-70041 Change-Id: I59ec8968294c1c342e10f718dbd2360f25378956 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Merge remote-tracking branch 'origin/5.11' into 5.12Liang Qi2018-09-051-0/+8
|\ | | | | | | | | | | | | Conflicts: src/virtualkeyboard/platforminputcontext.cpp Change-Id: Ic12049c5bfa598fff6e6c896a9b6ee73f664b681
| * Attempt to stabilise inputpanel auto testMitch Curtis2018-09-051-0/+8
| | | | | | | | | | | | | | | | | | | | The last patch showed that there was no focus window when InputContext::sendKeyClick() was called, so try to raise and activate the window at the start of each test to see if it helps. Task-number: QTBUG-62518 Change-Id: I48a66109d18e941e16e177d0c6ec76517846bc9d Reviewed-by: Andy Shaw <andy.shaw@qt.io>
* | Fix regression in arrow key navigationJarkko Koivikko2018-08-301-0/+11
| | | | | | | | | | | | | | | | | | | | | | | | When word candidate view contained items and an alternative keys view was opened by long press key, the word candidate item was selected together with alternative key. This regression was introduced in commit e803aec1ea21fd00e13b9535a4b536cc43c26ee4 Change-Id: Ie6f7e1580ddcc5327104eafafc3a10c86e9abb65 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* | Use enum class in the public APIJarkko Koivikko2018-08-281-0/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change was suggested in the API review. All the "old" enums are backwards compatible in QML, since unscoped values are enabled by default. Added the following new enum values maintaining compatibility (in QML): - QVirtualKeyboardInputEngine::PatternRecognitionMode::None (same as PatternRecognitionDisabled) - QVirtualKeyboardInputEngine::PatternRecognitionMode::Handwriting (same as HandwritingRecoginition) - QVirtualKeyboardSelectionListModel::Role::Display (same as DisplayRole) - QVirtualKeyboardSelectionListModel::Role::WordCompletionLength (same as WordCompletionLengthRole) Renamed the following enum values (new in 5.12): - QVirtualKeyboardSelectionListModel::Role::Dictionary (was DictionaryTypeRole) - QVirtualKeyboardSelectionListModel::Role::CanRemoveSuggestion (was CanRemoveSuggestionRole) - QVirtualKeyboardSelectionListModel::DictionaryType::Default (was DefaultDictionary) - QVirtualKeyboardSelectionListModel::DictionaryType::User (was UserDictionary) Added missing Q_DECLARE_METATYPE for: - QVirtualKeyboardInputEngine::PatternRecognitionMode - QVirtualKeyboardInputEngine::ReselectFlag - QVirtualKeyboardSelectionListModel::DictionaryType The enums can be found in: - src/virtualkeyboard/qvirtualkeyboardinputengine.h - src/virtualkeyboard/qvirtualkeyboardselectionlistmodel.h Added a test case for verifying QML enum values. Change-Id: I16749af71aadd762e9c303b5c682b2888afaa672 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* | Fix regression in test_wclAutoCommitWordSettingJarkko Koivikko2018-08-271-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Commit e803aec1ea21fd00e13b9535a4b536cc43c26ee4 modified the test case and caused regression. The idea was correct, but the implementation used SignalSpy for model.dataChanged, which is ambiguous, since there are multiple signals per update. This change introduce inputMethodSelectionListChangedSpy which monitors selectionListChanged signal from the input method. This is reliable, as long as suggestions are generated background. Change-Id: Ica2710b8c389c13e1a1b1d28027667e031bc4f59 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Frederik Gladhorn <frederik.gladhorn@qt.io>
* | Restore inputpanel tests for b2qtSami Nurmenniemi2018-08-271-4/+0
| | | | | | | | | | | | | | | | | | | | | | These tests pass now. Fixes have been - Support for MADV_DONTNEED added to qemu - Newer Yocto toolchain Task-number: QTBUG-68349 Change-Id: I47377a1f2596c7de410a23dd556c79552b0a41c1 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
* | Add Spanish Mexican keyboard layoutJarkko Koivikko2018-08-201-0/+1
| | | | | | | | | | | | | | | | [ChangeLog] Added Spanish Mexican keyboard layout Change-Id: Idfdf9d8abd051e8fbdad8e724780d30cb452e006 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Portuguese Brazil keyboard layoutJarkko Koivikko2018-08-201-0/+1
| | | | | | | | | | | | | | | | [ChangeLog] Added Portuguese Brazil keyboard layout Change-Id: Icb6f5931c63aa0380bebee29c9344a2e30c6a8f1 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add French Canadian keyboard layoutJarkko Koivikko2018-08-201-0/+1
| | | | | | | | | | | | | | | | [ChangeLog] Added French Canadian keyboard layout Change-Id: I20efb7aa42cf2b30f6302980b931e2d5c9df930a Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add English US keyboard layoutJarkko Koivikko2018-08-171-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added English US keyboard layout Change-Id: I02c54b5f31bfb757f3fb41fcc6c90341013a4fc3 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Indonesian keyboard layoutJarkko Koivikko2018-08-171-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added Indonesian keyboard layout Change-Id: I22bc6eca017c5ae79783c68eaf992853ae77d4ec Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Malay keyboard layoutJarkko Koivikko2018-08-171-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added Malay keyboard layout Change-Id: I4c388f6d5a8ee3863e09e2319645ba4644abc9b7 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add user dictionary and learning for HunspellJarkko Koivikko2018-08-161-8/+65
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This change adds user dictionary and learning function for Hunspell. Learning happens when the user selects the first candidate from the word candidate list (or presses the space key while the first candidate is selected) and the word does not exist in the default dictionary. User can remove a word from user dictionary by long pressing an item on the word candidate list (and selecting from the menu). This also allows the user to block words originating from the system dictionary. The Hunspell user dictionary is hard limited to 100 words. However, when user enters a word again (which exists in the user dictionary), it will be prioritized in the dictionary, so the most frequent words stay in the dictionary. The dictionaries are language and locale specific and are stored in: QStandardPaths::GenericConfigLocation + "/qtvirtualkeyboard/hunspell" The dictionaries are UTF-8 encoded text files and contain one word per line. The same directory also contains the blacklist files (which also exist per language and locale). These files contain words which are blacklisted from the default dictionary. [ChangeLog] Added user dictionary and learning for Hunspell Change-Id: Ib0fc70f7eaa14ec49b74000144a75c59313ac0fb Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Ukrainian keyboard layoutJarkko Koivikko2018-08-161-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added Ukrainian keyboard layout Change-Id: Ic844f43221823e6fde1a6f218f3ec539e731f607 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Turkish keyboard layoutJarkko Koivikko2018-08-161-0/+1
| | | | | | | | | | | | | | | | [ChangeLog] Added Turkish keyboard layout Change-Id: Ibc4d1382346f20fcc0d6cd3031b728a40f4bf5a3 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Thai keyboard layoutJarkko Koivikko2018-08-161-1/+2
| | | | | | | | | | | | | | [ChangeLog] Added Thai keyboard layout Change-Id: Ie527524f110a02729e2c81fa97408a00464eda4f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Slovenian keyboard layoutJarkko Koivikko2018-08-161-1/+2
| | | | | | | | | | | | | | [ChangeLog] Added Slovenian keyboard layout Change-Id: Icb8105c044831753a2565a55c0a1c7b98e9f84d1 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Slovak keyboard layoutJarkko Koivikko2018-08-161-1/+2
| | | | | | | | | | | | | | [ChangeLog] Added Slovak keyboard layout Change-Id: Ie9a853b8ba2eecc023918e0d8abe8a41a03e4329 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Albanian keyboard layoutJarkko Koivikko2018-08-161-1/+2
| | | | | | | | | | | | | | [ChangeLog] Added Albanian keyboard layout Change-Id: I85e800f0771c2d94ab87859c5feb7cf9d1f07f18 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Allow InputMethod to process pre-edit clickYuntaek Rim2018-08-161-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We already have InputMethod::reselect, but it is limited to case where the current pre-edit is discarded and new range is made active. However, if an input method wants to move the cursor within pre-edit, it is not possible with the current implementation. This change adds the new API for the InputMethod which allows to handle pre-edit click before reselect happens. If the input method handles the event, reselect will not be done. This change also improves the cursor handling within pre-edit text. Previously if the cursor attribute was added to pre-edit text and the input was committed, the cursor would jump to position after pre-edit text. This is now taken into account when committing text and cursor location will be preserved. Change-Id: I0a32f75eb4e454c86dd8d4f4016ac02fc1bc6c60 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | myscript: initial integrationYuntaek Rim2018-08-161-0/+116
| | | | | | | | | | | | | | [ChangeLog][MyScript] Added support for MyScript handwriting. Change-Id: I7c1f41dfd7ddd25faf2d197652ba04d3d7e12941 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Merge remote-tracking branch 'origin/5.11' into devLiang Qi2018-06-131-0/+4
|\| | | | | | | | | | | | | | | | | Conflicts: .qmake.conf src/virtualkeyboard/pinyindecoderservice.cpp src/virtualkeyboard/tcinputmethod.cpp Change-Id: Ie111173f60bc622ceda18bd5ee4a0e4b0e0a00ae
| * Skip crashing test on offscreen platformSami Nurmenniemi2018-05-231-0/+4
| | | | | | | | | | | | | | | | | | | | | | Test currently crashes often on QEMU so it needs to be skipped until root cause is found. Blacklisting is not enough since it does not capture crashes. Task-number: QTBUG-68349 Change-Id: I72aaeae3cc338fc59fea43ee766eea3762a1eaa6 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Improve reliability of inputpanel testJarkko Koivikko2018-05-221-91/+81
| | | | | | | | | | | | | | | | | | - Skip tests which are not applicaple - Add delay after focus change in prepareTest Task-number: QTBUG-62518 Change-Id: Ib62b408634bf4ad19940908738fc2cd756bb6b67 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Vietnamese handwriting recognition (T9 Write)Jarkko Koivikko2018-05-111-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added Vietnamese handwriting recognition. Change-Id: I34fcf6acf58c3fcc8ef131db9c0f34703a7f85fc Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Vietnamese keyboard layoutJarkko Koivikko2018-05-111-0/+22
| | | | | | | | | | | | | | [ChangeLog] Added Vietnamese keyboard layout Change-Id: I9191e76a3ff268ffa93af87786412c27da022950 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add latin extra layout for RussianJarkko Koivikko2018-05-101-0/+1
|/ | | | | | | | [ChangeLog] Added latin extra layout for Russian. Task-number: QTBUG-67756 Change-Id: I9422d68ef2d08fffa6bb7241bd038aad9a3146a2 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* FullScreenMode: Send return key without modifiersv5.11.0-beta2Andy Shaw2018-03-091-0/+13
| | | | | | | | | | | When the return key is sent to a multiple line text field it can be interpreted differently if the Shift modifier is included. This makes sense for a hard keyboard as you can use it to enter in a new line versus a new paragraph. For the virtual keyboard however, it is best to just send it as a plain return so it handles it correctly. Change-Id: I995504d7ab6961fd8baf016d2d68be4b659d1e19 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Merge remote-tracking branch 'origin/5.10' into devLiang Qi2018-01-201-0/+4
|\ | | | | | | | | | | | | Conflicts: .qmake.conf Change-Id: I84cccac7024c1c48b6419838bb424e45cb2557d4
| * Blacklist and skip failing/crashing tests on boot2qtSami Nurmenniemi2018-01-031-0/+4
| | | | | | | | | | | | Task-number: QTBUG-63152 Change-Id: I588c4b71a9d7e44cab5010e9a32c75e6e12c7389 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add support for external language switchJarkko Koivikko2018-01-191-3/+13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Added new signal InputPanel::externalLanguageSwitch and a property InputPanel::externalLanguageSwitchEnabled for enabling external language switch. If the externalLanguageSwitchEnabled is true, the signal is triggered instead of built-in language popup. The new language can be selected by setting the VirtualKeyboardSettings::locale property. [ChangeLog] Add option to use external language dialog instead of built-in language popup. Change-Id: I44f88e6b3e52db4cfbee02bd3b6d7f4be38a9521 Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | tst_inputpanel: don't rely on index var being valid after first loopMitch Curtis2017-12-131-1/+1
|/ | | | | | | | | | | | In Qt 5.10 this code would work, but in dev inputIndex is null. It might be a regression or it might be a fix to comply with the standard, but either way, we should be explicit in the test and initialize the variable in the for loop's initial expression. Task-number: QTBUG-64988 Change-Id: Idf6019307a02a32dcb6237e2e83e5a9cd512df3d Reviewed-by: Jarkko Koivikko <jarkko.koivikko@code-q.fi> Reviewed-by: Liang Qi <liang.qi@qt.io>
* Add Hebrew keyboard layoutJarkko Koivikko2017-08-241-1/+4
| | | | | | | [ChangeLog] Added Hebrew keyboard layout. Change-Id: I7779db4e5ac3c5a99937a0d7b7e572db65f0d811 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add Farsi handwritingJarkko Koivikko2017-08-211-0/+1
| | | | | | | [ChangeLog] Added Farsi handwriting. Change-Id: I1bf25cbc7f36cf8ca3f0a44b7e217a55ed3aa13a Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Add Arabic handwritingJarkko Koivikko2017-08-211-0/+1
| | | | | | | [ChangeLog] Added Arabic handwriting. Change-Id: Ica0601da2df262369159415d28fdb183e6f63736 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* Merge remote-tracking branch 'origin/5.9' into devLiang Qi2017-08-151-0/+2
|\ | | | | | | | | | | | | | | Conflicts: src/virtualkeyboard/t9writeworker.cpp src/virtualkeyboard/t9writeworker.h Change-Id: I1fa1567e2739766c55c0e94b10706eecb8ba2ae1
| * 3rdparty/openwnn: Fix crash related to entering a smileyJarkko Koivikko2017-08-021-0/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | The crash occurs in Hiragana input mode only when pressing the space after entering a smiley. Fix it by handling the smiley as individual characters instead of text when submitting to OpenWNN engine. [ChangeLog][OpenWNN] Fixed crash when pressing the space after entering a smiley. Task-number: QTBUG-62143 Change-Id: Ic5f271bdfe05491ffd6147f1fc8eb9f54ef4e032 Reviewed-by: Friedemann Kleint <Friedemann.Kleint@qt.io> Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Serbian keyboard layoutJarkko Koivikko2017-08-071-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added Serbian keyboard layout. Change-Id: I7baa330791c62f7bbf4ff6a253ce1eea9f9c0e32 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Hungarian keyboard layoutJarkko Koivikko2017-08-071-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added Hungarian keyboard layout. Change-Id: Ie0491c625aa767c2e775f1961192f3e4fa0c652b Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Czech keyboard layoutJarkko Koivikko2017-08-071-0/+2
| | | | | | | | | | | | | | [ChangeLog] Added Czech keyboard layout. Change-Id: I12d989436e0299dc3dc1e993d756aba31a30a763 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Croatian keyboard layoutJarkko Koivikko2017-08-071-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added Croatian keyboard layout. Change-Id: I6e06b81439b046919561a5f7349d2603e53a7f55 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Bulgarian keyboard layoutJarkko Koivikko2017-08-071-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added Bulgarian keyboard layout. Change-Id: I636ba97d3fe80c94f91b269426465023a433d7bf Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Greek keyboard layoutJarkko Koivikko2017-08-071-0/+6
| | | | | | | | | | | | | | [ChangeLog] Added Greek keyboard layout. Change-Id: I56a15ebcf58c768d8f544654cb8a17a77c743e3f Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Estonian keyboard layoutJarkko Koivikko2017-07-311-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added Estonian keyboard layout. Change-Id: Iadb39df14980e36a15f61f4e4f346f8aeee63b91 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add Dutch keyboard layoutJarkko Koivikko2017-07-311-0/+1
| | | | | | | | | | | | | | [ChangeLog] Added Dutch keyboard layout. Change-Id: I91d853fe2e74c68492caf9afac85df2c4b64548d Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>
* | Add support for Japanese handwriting (T9 Write CJK)Jarkko Koivikko2017-07-081-0/+1
| | | | | | | | | | | | | | This change adds handwriting support for Japanese. Change-Id: Ifc8f0e32c8b3211c13aee8be5cb2e05fae09d3b7 Reviewed-by: Mitch Curtis <mitch.curtis@qt.io>