~michael-sheldon/ubuntu-keyboard/fix-oxide-dismiss-test

« back to all changes in this revision

Viewing changes to tests/autopilot/ubuntu_keyboard/emulators/keyboard.py

  • Committer: CI Train Bot
  • Author(s): Richard Huddie
  • Date: 2015-06-29 15:45:10 UTC
  • mfrom: (382.1.5 ubuntu-keyboard)
  • Revision ID: ci-train-bot@canonical.com-20150629154510-rkf0zlomhrv3rz57
Add additional aliases for the action keys of the OSK used by the autopilot helpers. Fixes: #1467449
Approved by: Sergio Cazzolato, Christopher Lee, PS Jenkins bot, Michael Sheldon

Show diffs side-by-side

added added

removed removed

Lines of Context:
52
52
        '?123': 'symbols',
53
53
        ' ': 'space',
54
54
        '\n': 'return',
 
55
        'Enter': 'return',
 
56
        'Backspace': 'backspace',
 
57
        'Space': 'space',
 
58
        'Shift': 'shift',
55
59
    }
56
60
 
57
61
    __maliit = None
227
231
            or self._stored_active_keypad_name != self._current_keypad_name
228
232
        ):
229
233
            self._stored_active_keypad_name = self._current_keypad_name
230
 
            loader = self.maliit.select_single(
231
 
                "QQuickLoader",
232
 
                objectName='characterKeyPadLoader'
233
 
            )
234
234
            logger.debug("Keypad lookup")
235
 
            self._active_keypad = loader.select_single(KeyPad)
 
235
            self._active_keypad = self._keypad_loader.select_single(KeyPad)
236
236
        return self._active_keypad
237
237
 
238
238
    @property
 
239
    def _keypad_loader(self):
 
240
        return self.maliit.select_single(
 
241
            "QQuickLoader", objectName='characterKeyPadLoader')
 
242
 
 
243
    @property
 
244
    def _plugin_source(self):
 
245
        return self._keypad_loader.source
 
246
 
 
247
    @property
239
248
    def _current_keypad_name(self):
240
249
        return self._keyboard_container.state
241
250