electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

commit ea1cb0a6130c970e8c322bff13ad07c4de989a01
parent 3350229263648226cde61ebc3925190861f06b4f
Author: ThomasV <thomasv@gitorious>
Date:   Fri, 26 Jul 2013 05:28:41 +0200

better backspace detection

Diffstat:
Mgui/gui_text.py | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/gui/gui_text.py b/gui/gui_text.py @@ -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)