Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix backspace handling in local keyboard

  • Loading branch information...
commit 5881c45dd624059fc7040f7ca92c2734a662392d 1 parent e262536
Mathieu Virbel tito authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 berkelium/__init__.py
4 berkelium/__init__.py
View
@@ -860,8 +860,8 @@ def _on_local_keyboard(self, instance, key, text, modifiers):
self._bk.keyEvent(1, vwmods, vk_code, 0)
# needed to make the enter key working.
- if key[0] == 13:
- text = '\r'
+ if key[0] in (8, 10, 13):
+ text = chr(key[0])
if text is not None:
self._bk.textEvent(text)
Please sign in to comment.
Something went wrong with that request. Please try again.