diff options
author | Jody Foo <jody.foo@gmail.com> | 2017-01-13 21:28:50 +0100 |
---|---|---|
committer | Jody Foo <jody.foo@gmail.com> | 2017-01-13 21:28:50 +0100 |
commit | a71499a910adebcc85bb7c96ea817456bcd81718 (patch) | |
tree | ba64c17778c0d2bc819025caccb3275d368b8dc2 | |
parent | 4645c4b2eb2b3aa93305f0c10fd3567cfeeb41c7 (diff) |
Add a setting for enabling or disabling mouse support.
Mouse support is enabled by default. To disable mouse support, set
```
handle_mouse = False
```
in your config file.
-rw-r--r-- | alot/defaults/alot.rc.spec | 3 | ||||
-rw-r--r-- | alot/ui.py | 2 | ||||
-rw-r--r-- | docs/source/configuration/alotrc_table | 10 |
3 files changed, 14 insertions, 1 deletions
diff --git a/alot/defaults/alot.rc.spec b/alot/defaults/alot.rc.spec index d99a96e8..d2ee450f 100644 --- a/alot/defaults/alot.rc.spec +++ b/alot/defaults/alot.rc.spec @@ -35,6 +35,9 @@ themes_dir = string(default=None) # name of the theme to use theme = string(default=None) +# enable mouse support - mouse tracking will be handled by urwid +handle_mouse = boolean(default=True) + # headers that get displayed by default displayed_headers = force_list(default=list(From,To,Cc,Bcc,Subject)) @@ -96,7 +96,7 @@ class UI(object): # set up main loop self.mainloop = urwid.MainLoop(self.root_widget, - handle_mouse=True, + handle_mouse=settings.get('handle_mouse'), event_loop=urwid.TwistedEventLoop(), unhandled_input=self._unhandeled_input, input_filter=self._input_filter) diff --git a/docs/source/configuration/alotrc_table b/docs/source/configuration/alotrc_table index ff38eba4..9e27b206 100644 --- a/docs/source/configuration/alotrc_table +++ b/docs/source/configuration/alotrc_table @@ -289,6 +289,16 @@ :default: "Fwd: " +.. _handle-mouse: + +.. describe:: handle_mouse + + enable mouse support - mouse tracking will be handled by urwid + + :type: boolean + :default: True + + .. _history-size: .. describe:: history_size |