summaryrefslogtreecommitdiff
path: root/src/keyboard.py
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-07 19:18:36 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-08-07 19:18:36 +0000
commit05928d592f76c7948a19981454d763feee51b2fb (patch)
tree8cd049bbc0d987fee219f51aa258be924274baab /src/keyboard.py
parenteb36e08e11e8acac2db6a0422b5c9bd5ec9ab395 (diff)
downloadpoezio-05928d592f76c7948a19981454d763feee51b2fb.tar.gz
poezio-05928d592f76c7948a19981454d763feee51b2fb.tar.bz2
poezio-05928d592f76c7948a19981454d763feee51b2fb.tar.xz
poezio-05928d592f76c7948a19981454d763feee51b2fb.zip
completion is now sorted by last_talked. fixed #1712
Diffstat (limited to 'src/keyboard.py')
-rw-r--r--src/keyboard.py5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/keyboard.py b/src/keyboard.py
index 90bd79ef..9fdef730 100644
--- a/src/keyboard.py
+++ b/src/keyboard.py
@@ -23,8 +23,6 @@ of the time ONE char, but may be longer if it's a keyboard
shortcut, like ^A, M-a or KEY_RESIZE)
"""
-from common import debug
-
def get_next_byte(s):
"""
Read the next byte of the utf-8 char
@@ -54,15 +52,12 @@ def read_char(s):
(first, c) = get_next_byte(s)
char = "M-"+c
if 194 <= first:
- debug('1\n')
(code, c) = get_next_byte(s) # 2 bytes char
char += c
if 224 <= first:
- debug('2\n')
(code, c) = get_next_byte(s) # 3 bytes char
char += c
if 240 <= first:
- debug('3\n')
(code, c) = get_next_byte(s) # 4 bytes char
char += c
return char