Type in entire phrases.
(self, text)
| 250 | ) |
| 251 | |
| 252 | def text(self, text): |
| 253 | """ Type in entire phrases. """ |
| 254 | for ch in text: |
| 255 | ty, shift = event_types_text_from_char[ch] |
| 256 | ty = ty.lower() |
| 257 | if shift: |
| 258 | eb = getattr(_EventBuilder(self, 'left_shift'), ty) |
| 259 | else: |
| 260 | eb = _EventBuilder(self, ty) |
| 261 | eb.tap() |
| 262 | return self |
| 263 | |
| 264 | def text_unicode(self, text): |
| 265 | # Since the only purpose of this key-press is to enter text |