I would like to disable the mouse when a specific setting is set to enabled.
I thought that the following in a .sublime-keymap
would work:
{
"button": "button1", "count": 1,
"press_command": "do_nothing",
"context": { "key": "setting.typewriter_typing", "operator": "equal", "operand": true } ]
},
But, alas, it doesn’t work. The “context” is ignored completely and mouse-clicking is disabled everywhere.
Any ideas on how to implement this?
Alex
PS. I had tried, and failed, to resolve this circa ST2. The mousemap’s disregard for context is very strange.