Remove use of autopilot simulated keyboard when using OSK
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
ubuntu-ui-toolkit (Ubuntu) |
Fix Released
|
High
|
Richard Huddie |
Bug Description
It is now the case that if Unity8 detects a keyboard it will automatically hide the OSK and stop it from appearing. This includes the simulated keyboard used by Autopilot.
Now that textfield.write() supports using OSK, we should remove all instances of the autopilot simulated keyboard when the OSK is being used. The simulated keyboard is currently used to send Home and End key events to move the cursor to the start or end of a string, because these keys are not present on the OSK.
Some new helper methods in ubuntu_keyboard now allow the Home and End key events to be sent through the maliit-server without having to create a new simulated keyboard, which would cause Unity8 to hide the OSK. So the textfield helper methods should be updated to use the new helpers from ubuntu_keyboard and remove usage of the autopilot simulated keyboard when the OSK is being used.
Related branches
- Cris Dywan: Approve
- PS Jenkins bot: Approve (continuous-integration)
- Ubuntu SDK team: Pending requested
-
Diff: 191 lines (+49/-72)3 files modifiedtests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textarea.py (+16/-20)
tests/autopilot/ubuntuuitoolkit/_custom_proxy_objects/_textfield.py (+33/-46)
tests/autopilot/ubuntuuitoolkit/tests/custom_proxy_objects/test_textfield.py (+0/-6)
Changed in ubuntu-ui-toolkit (Ubuntu): | |
assignee: | nobody → Richard Huddie (rhuddie) |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | New → In Progress |
importance: | Undecided → High |
Changed in ubuntu-ui-toolkit (Ubuntu): | |
status: | In Progress → Fix Released |