summaryrefslogtreecommitdiff
path: root/src/data_forms.py
diff options
context:
space:
mode:
Diffstat (limited to 'src/data_forms.py')
-rw-r--r--src/data_forms.py4
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]