UIX: TextInput fix typo and command for undo for bkspc closes #664

This commit is contained in:
Qua-non 2012-09-03 15:56:44 +05:30
parent b4be8d0cac
commit fb2b4e166d
1 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ class TextInput(Widget):
self._selection_finished = True
self._selection_touch = None
self.selection_text = ''
self.__selection_from = None
self._selection_from = None
self._selection_to = None
self._bubble = None
self._lines_flags = []
@ -419,7 +419,7 @@ class TextInput(Widget):
self._selection = True
self.delete_selection(True)
elif undo_type == 'bkspc':
substring = x_item['undo_command'][2:]
substring = x_item['undo_command'][2:][0]
self.insert_text(substring, True)
else:
# delsel