Fix #1117 can't use the '3' key
This commit is contained in:
parent
6312ad4a7e
commit
97375f1a7c
|
@ -391,7 +391,7 @@ class Screen(CursesStdIO):
|
|||
self.input = self.input[:self.input_cursor - 1] + self.input[self.input_cursor:]
|
||||
self.input_cursor -= 1
|
||||
|
||||
elif c == curses.KEY_DC or c == 51:
|
||||
elif c == curses.KEY_DC:
|
||||
if self.input and self.input_cursor < len(self.input):
|
||||
self.input = self.input[:self.input_cursor] + self.input[self.input_cursor + 1:]
|
||||
|
||||
|
|
Loading…
Reference in New Issue