diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-02-15 20:49:54 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-02-15 20:49:54 +0100 |
commit | adf5a977a970fff1e3b42655ade0c3f61c3a8958 (patch) | |
tree | beabfa8fcac607da10c4b2470033bdee8f8d008e /src/data_forms.py | |
parent | b707696b466087f59243a8fc5de18cc71761221a (diff) | |
download | poezio-adf5a977a970fff1e3b42655ade0c3f61c3a8958.tar.gz poezio-adf5a977a970fff1e3b42655ade0c3f61c3a8958.tar.bz2 poezio-adf5a977a970fff1e3b42655ade0c3f61c3a8958.tar.xz poezio-adf5a977a970fff1e3b42655ade0c3f61c3a8958.zip |
Remove ^J from the shortcuts triggering the Enter event, because
we’ll use it to add a (real) \n into the input’s text.
Also remove "\n" because it’s useless
Diffstat (limited to 'src/data_forms.py')
-rw-r--r-- | src/data_forms.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/data_forms.py b/src/data_forms.py index 0d215c1d..3b756304 100644 --- a/src/data_forms.py +++ b/src/data_forms.py @@ -196,14 +196,14 @@ class TextMultiWin(FieldInput, windows.Win): elif key == 'KEY_RIGHT': if self.val_pos < len(self.options)-1: self.val_pos += 1 - elif key in ('^J', '^M', '\n'): + elif key == '^M': self.edition_input = windows.Input() self.edition_input.color = self.color self.edition_input.resize(self.height, self.width, self.y, self.x) self.edition_input.text = self.options[self.val_pos] self.edition_input.key_end() else: - if key in ('^J', '^M', '\n'): + if key == '^M': self.options[self.val_pos] = self.edition_input.get_text() if not self.options[self.val_pos] and self.val_pos != len(self.options) -1: del self.options[self.val_pos] |