diff options
-rw-r--r-- | alot/buffers/thread.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/alot/buffers/thread.py b/alot/buffers/thread.py index 744eab22..567d98f8 100644 --- a/alot/buffers/thread.py +++ b/alot/buffers/thread.py @@ -76,6 +76,10 @@ class ThreadBuffer(Buffer): ('weight', 0.5, cur_msg_deco), ]) + # clear the command map to prevent cursor movements from switching focus + self.body._command_map = self.body._command_map.copy() + self.body._command_map._command = {} + urwid.connect_signal(self._msgtree_widget.body, "modified", self._update_cur_msg) self.rebuild() |