diff --git a/gui/gui_text.py b/gui/gui_text.py index 6387f21d..2dd8c9c0 100644 --- 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)