Merge lp:~michael-sheldon/ubuntu-keyboard/fix-1521803 into lp:ubuntu-keyboard

Proposed by Michael Sheldon
Status: Merged
Approved by: Bill Filler
Approved revision: 430
Merged at revision: 431
Proposed branch: lp:~michael-sheldon/ubuntu-keyboard/fix-1521803
Merge into: lp:ubuntu-keyboard
Diff against target: 52 lines (+23/-2)
2 files modified
qml/Keyboard.qml (+1/-1)
tests/autopilot/ubuntu_keyboard/tests/test_keyboard.py (+22/-1)
To merge this branch: bzr merge lp:~michael-sheldon/ubuntu-keyboard/fix-1521803
Reviewer Review Type Date Requested Status
PS Jenkins bot continuous-integration Needs Fixing
Ubuntu Phablet Team Pending
Review via email: mp+280936@code.launchpad.net

Commit message

Fix keyboard shifting out of capslock when in fields without preedit

Description of the change

Fix keyboard shifting out of capslock when in fields without preedit

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
430. By Michael Sheldon

Wait longer for word suggestion generation in tests

Revision history for this message
Michael Sheldon (michael-sheldon) wrote :

Are there any related MPs required for this MP to build/function as expected? Please list.

 * No

Is your branch in sync with latest trunk (e.g. bzr pull lp:trunk -> no changes)

 * Yes

Did you perform an exploratory manual test run of your code change and any related functionality on device or emulator?

 * Yes

Did you successfully run all tests found in your component's Test Plan (https://wiki.ubuntu.com/Process/Merges/TestPlan/ubuntu-keyboard) on device or emulator?

 * Yes

If you changed the UI, was the change specified/approved by design?

 * No change

If you changed UI labels, did you update the pot file?

 * No change

If you changed the packaging (debian), did you add a core-dev as a reviewer to this MP?

 * No change

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'qml/Keyboard.qml'
--- qml/Keyboard.qml 2015-07-16 13:55:08 +0000
+++ qml/Keyboard.qml 2015-12-18 14:00:54 +0000
@@ -235,7 +235,7 @@
235 Connections {235 Connections {
236 target: input_method236 target: input_method
237 onActivateAutocaps: {237 onActivateAutocaps: {
238 if (keypad.state == "CHARACTERS") {238 if (keypad.state == "CHARACTERS" && keypad.activeKeypadState != "CAPSLOCK") {
239 keypad.activeKeypadState = "SHIFTED";239 keypad.activeKeypadState = "SHIFTED";
240 keypad.autoCapsTriggered = true;240 keypad.autoCapsTriggered = true;
241 } else {241 } else {
242242
=== modified file 'tests/autopilot/ubuntu_keyboard/tests/test_keyboard.py'
--- tests/autopilot/ubuntu_keyboard/tests/test_keyboard.py 2015-11-26 14:11:52 +0000
+++ tests/autopilot/ubuntu_keyboard/tests/test_keyboard.py 2015-12-18 14:00:54 +0000
@@ -397,6 +397,27 @@
397 Eventually(Equals(KeyPadState.CAPSLOCK))397 Eventually(Equals(KeyPadState.CAPSLOCK))
398 )398 )
399399
400 def test_capslock_stays_on(self):
401 """Capslock should remain on when typing text.
402
403 """
404 text_area = self.launch_test_input_area(
405 input_hints=['Qt.ImhNoPredictiveText'])
406 self.ensure_focus_on_input(text_area)
407 keyboard = Keyboard()
408 self.addCleanup(keyboard.dismiss)
409
410 keyboard.press_key('shift')
411 keyboard.press_key('shift', True)
412 keyboard.press_key('A', True)
413 keyboard.press_key('B', True)
414 keyboard.press_key('C', True)
415
416 self.assertThat(
417 keyboard.active_keypad_state,
418 Eventually(Equals(KeyPadState.CAPSLOCK))
419 )
420
400 # Note: based on UX design doc421 # Note: based on UX design doc
401 def test_shift_state_returns_to_default_after_letter_typed(self):422 def test_shift_state_returns_to_default_after_letter_typed(self):
402 """Pushing shift and then typing an uppercase letter must automatically423 """Pushing shift and then typing an uppercase letter must automatically
@@ -692,7 +713,7 @@
692713
693 keyboard.type('Helfn')714 keyboard.type('Helfn')
694715
695 sleep(1)716 sleep(2)
696717
697 keyboard.type(' ')718 keyboard.type(' ')
698719

Subscribers

People subscribed via source and target branches