diff options
author | mathieui <mathieui@mathieui.net> | 2016-10-05 19:36:42 +0200 |
---|---|---|
committer | mathieui <mathieui@mathieui.net> | 2016-10-05 19:37:34 +0200 |
commit | eacc5a6fb188af6b7027064e4bc34212729334dd (patch) | |
tree | 12bc8ce7cc0f33b990d07a2aca774f6e4242c1e2 | |
parent | 361aea1440973839b786cd6ca223c5a39e81410e (diff) | |
download | poezio-eacc5a6fb188af6b7027064e4bc34212729334dd.tar.gz poezio-eacc5a6fb188af6b7027064e4bc34212729334dd.tar.bz2 poezio-eacc5a6fb188af6b7027064e4bc34212729334dd.tar.xz poezio-eacc5a6fb188af6b7027064e4bc34212729334dd.zip |
Fix #3100 (Allow pasting in a data form)
-rw-r--r-- | poezio/tabs/data_forms.py | 2 | ||||
-rw-r--r-- | 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() |