summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-27 22:37:40 +0000
committerlouiz@4325f9fc-e183-4c21-96ce-0ab188b42d13 <louiz@4325f9fc-e183-4c21-96ce-0ab188b42d13>2010-01-27 22:37:40 +0000
commit40f3dad56bd5cdb05e970797e48f18d2fdb364dd (patch)
tree892960b50f33929d53aea4295efde0f948a0d296 /src
parent6429b30f91164cbee42806b6e171205131aaa298 (diff)
downloadpoezio-40f3dad56bd5cdb05e970797e48f18d2fdb364dd.tar.gz
poezio-40f3dad56bd5cdb05e970797e48f18d2fdb364dd.tar.bz2
poezio-40f3dad56bd5cdb05e970797e48f18d2fdb364dd.tar.xz
poezio-40f3dad56bd5cdb05e970797e48f18d2fdb364dd.zip
la touche suppr fonctionne
Diffstat (limited to 'src')
-rw-r--r--src/gui.py5
-rw-r--r--src/window.py3
2 files changed, 6 insertions, 2 deletions
diff --git a/src/gui.py b/src/gui.py
index 2687a44d..5845999b 100644
--- a/src/gui.py
+++ b/src/gui.py
@@ -155,7 +155,10 @@ class Gui(object):
elif ord(key) == 8 or ord(key) == 127:
self.window.input.key_backspace()
else:
- if ord(key) > 190 and ord(key) < 225:
+ if ord(key) == 27 and ord(stdscr.getkey()) == 91 \
+ and ord(stdscr.getkey()) == 51: # FIXME: ugly ugly workaroung.
+ self.window.input.key_dc()
+ elif ord(key) > 190 and ord(key) < 225:
key = key+stdscr.getkey()
elif ord(key) == 226:
key = key+stdscr.getkey()
diff --git a/src/window.py b/src/window.py
index 55910031..382e88de 100644
--- a/src/window.py
+++ b/src/window.py
@@ -183,7 +183,8 @@ class Input(Win):
return
(y, x) = self.win.getyx()
self.text = self.text[:self.pos]+self.text[self.pos+1:]
- self.win.delch(y, x-1)
+ self.win.delch(y, x)
+ self.refresh()
def key_up(self):
self.win.clear()