From eacc5a6fb188af6b7027064e4bc34212729334dd Mon Sep 17 00:00:00 2001 From: mathieui Date: Wed, 5 Oct 2016 19:36:42 +0200 Subject: Fix #3100 (Allow pasting in a data form) --- poezio/tabs/data_forms.py | 2 +- poezio/windows/data_forms.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/poezio/tabs/data_forms.py b/poezio/tabs/data_forms.py index 0edf9e89..c73f4922 100644 --- a/poezio/tabs/data_forms.py +++ b/poezio/tabs/data_forms.py @@ -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 diff --git a/poezio/windows/data_forms.py b/poezio/windows/data_forms.py index 53a0adca..7b405747 100644 --- a/poezio/windows/data_forms.py +++ b/poezio/windows/data_forms.py @@ -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() -- cgit v1.2.3