From 3870c25c9de1256f5735864cce1316491f9702b4 Mon Sep 17 00:00:00 2001 From: Andrew Resch Date: Mon, 4 Jan 2010 00:18:53 +0000 Subject: [PATCH] Fix #1117 can't use the '3' key --- ChangeLog | 1 + deluge/ui/console/screen.py | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index b7375b209..8837ca3e9 100644 --- a/ChangeLog +++ b/ChangeLog @@ -15,6 +15,7 @@ ==== Console ==== * Fix #1115 not showing usage for the 'debug' command * Fix #1116 not being able to use command aliases when not connected to a daemon + * Fix #1117 can't use the '3' key ==== Windows ==== * Fix displaying folders in the add torrent dialog diff --git a/deluge/ui/console/screen.py b/deluge/ui/console/screen.py index c978ec841..d5fc2caf9 100644 --- a/deluge/ui/console/screen.py +++ b/deluge/ui/console/screen.py @@ -390,7 +390,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:]