diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-04-10 17:00:29 +0200 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-04-10 17:00:29 +0200 |
commit | 737bbbface3998ac9b97948e6ae16ab90a1130d2 (patch) | |
tree | 1b77a8b46d00daf60750f70ed1d151344b4ccb5b /src | |
parent | 6cd5f8d4f792a9fac50ab6a70922fc61d89d7931 (diff) | |
download | poezio-737bbbface3998ac9b97948e6ae16ab90a1130d2.tar.gz poezio-737bbbface3998ac9b97948e6ae16ab90a1130d2.tar.bz2 poezio-737bbbface3998ac9b97948e6ae16ab90a1130d2.tar.xz poezio-737bbbface3998ac9b97948e6ae16ab90a1130d2.zip |
Fix the read_keyboard on ^C
Diffstat (limited to 'src')
-rw-r--r-- | src/windows.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/windows.py b/src/windows.py index b56a7d37..c8476d18 100644 --- a/src/windows.py +++ b/src/windows.py @@ -50,8 +50,6 @@ import wcwidth import singleton import collections -from keyboard import read_char - Line = collections.namedtuple('Line', 'text text_offset nickname_color time nickname') g_lock = Lock() @@ -1109,7 +1107,7 @@ class MessageInput(Input): """ Read one more char (c) and add \x19c to the string """ - attr_char = read_char(self.core.stdscr) + attr_char = self.core.read_keyboard() if attr_char in self.text_attributes or (attr_char.isdigit() and int(attr_char) < 7): self.do_command('\x19', False) self.do_command(attr_char) |