tbetter backspace detection - electrum - Electrum Bitcoin wallet HTML git clone https://git.parazyd.org/electrum DIR Log DIR Files DIR Refs DIR Submodules --- DIR commit ea1cb0a6130c970e8c322bff13ad07c4de989a01 DIR parent 3350229263648226cde61ebc3925190861f06b4f HTML Author: ThomasV <thomasv@gitorious> Date: Fri, 26 Jul 2013 05:28:41 +0200 better backspace detection Diffstat: M gui/gui_text.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) --- DIR diff --git a/gui/gui_text.py b/gui/gui_text.py t@@ -181,7 +181,8 @@ class ElectrumGui: def edit_str(self, target, c, is_num=False): - if c==263 and target: + # detect backspace + if c in [8, 127, 263] and target: target = target[:-1] elif not is_num or curses.unctrl(c) in '0123456789.': target += curses.unctrl(c)