Home Download Buy Blog Forum Support

Disable mouse with setting

Disable mouse with setting

Postby quodlibet on Thu Jul 04, 2013 3:27 pm

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:

Code: Select all
{
   "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.
quodlibet
 
Posts: 458
Joined: Sat Jun 18, 2011 5:53 pm

Return to Plugin Development

Who is online

Users browsing this forum: No registered users and 2 guests