Fix #3100 (Allow pasting in a data form)

This commit is contained in:
mathieui 2016-10-05 19:36:42 +02:00
parent 361aea1440
commit eacc5a6fb1
2 changed files with 3 additions and 3 deletions

View file

@ -52,7 +52,7 @@ class DataFormsTab(Tab):
self.help_win_dyn.refresh(self.form_win.get_help_message())
self.form_win.refresh_current_input()
else:
self.form_win.on_input(key)
self.form_win.on_input(key, raw=raw)
def resize(self):
self.need_resize = False

View file

@ -433,10 +433,10 @@ class FormWin(object):
self.inputs[self.current_input]['input'].set_color(get_theme().COLOR_SELECTED_ROW)
self.inputs[self.current_input]['label'].set_color(get_theme().COLOR_SELECTED_ROW)
def on_input(self, key):
def on_input(self, key, raw=False):
if not self.inputs:
return
self.inputs[self.current_input]['input'].do_command(key)
self.inputs[self.current_input]['input'].do_command(key, raw=raw)
def refresh(self):
self._win.erase()