diff options
author | Florent Le Coz <louiz@louiz.org> | 2011-11-18 18:26:15 +0100 |
---|---|---|
committer | Florent Le Coz <louiz@louiz.org> | 2011-11-18 18:28:07 +0100 |
commit | 18dbc880e1d72a09caec8163de4f80bf03f567e1 (patch) | |
tree | bb9b5d6f7d2405e618a0ee23ece11b74731fdbe5 /src/core.py | |
parent | 27e587118bac2ee70a076875f0fb9fddcc334c9b (diff) | |
download | poezio-18dbc880e1d72a09caec8163de4f80bf03f567e1.tar.gz poezio-18dbc880e1d72a09caec8163de4f80bf03f567e1.tar.bz2 poezio-18dbc880e1d72a09caec8163de4f80bf03f567e1.tar.xz poezio-18dbc880e1d72a09caec8163de4f80bf03f567e1.zip |
Do not try to interpret keys as key shortcuts when pasting text.
Avoiding, for example, nickname completions when pasting a text containing
the \t char. Also, pasting is a little because it doesn’t search an associated
command for each pasted char. AWESOME.
Diffstat (limited to 'src/core.py')
-rw-r--r-- | src/core.py | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/core.py b/src/core.py index 6bfb4c63..8de694f7 100644 --- a/src/core.py +++ b/src/core.py @@ -808,12 +808,12 @@ class Core(object): if char in self.key_func: self.key_func[char]() else: - res = self.do_command(char) + res = self.do_command(char, False) if res: self.refresh_window() else: for char in char_list: - self.do_command(char) + self.do_command(char, True) self.refresh_window() self.doupdate() @@ -1807,10 +1807,10 @@ class Core(object): roster.save_to_config_file() config.set_and_save('info_win_height', self.information_win_size, 'var') - def do_command(self, key): + def do_command(self, key, raw): if not key: return - return self.current_tab().on_input(key) + return self.current_tab().on_input(key, raw) def on_roster_enter_key(self, roster_row): """ |