0

According to this question, I added this :

[
    {
        "button": "button1", 
        "count": 1, 
        "modifiers": ["ctrl"],
        "press_command": "drag_select",
        "command": "goto_definition"
    }
]

To a file which a named Default (Windows).sublime-mousemap in %appdata%\Sublime Text 3\Packages\User .And it works just fine. The only issue here is that the mutiselection feature of sublime text not to work, so I thought I could edit this in such to maintain the multiselection (ctrl + alt + click) or (ctrl + shift + click) :

[
    {
        "button": "button1", 
        "count": 1, 
        "modifiers": ["ctrl + alt"],
        "press_command": "drag_select",
        "command": "goto_definition"
    }
]

But it doesn't seem to work. Any help with this would be great. Thanks.

Community
  • 1
  • 1
user3350731
  • 962
  • 1
  • 10
  • 30

1 Answers1

0

Try setting it to the following:

[
    {
        "button": "button1", 
        "count": 1, 
        "modifiers": ["ctrl", "alt"],
        "press_command": "drag_select",
        "command": "goto_definition"
    }
]

The "modifiers" array needs to have the individual keys as individual values, separated by commas - ["ctrl", "alt"], instead of having them both together concatenated with a plus +. This is one of the differences between keymaps and mousemaps.

MattDMo
  • 100,794
  • 21
  • 241
  • 231