Sublime Forum

drag_select doesn't change keyboard focus across panes

#1

I would like Ctrl+Click to select the word under the cursor. I’m using the following item in my Default (Windows).sublime-mousemap:

{ "button": "button1", "count": 1, "modifiers": "ctrl"], "press_command": "drag_select", "press_args": {"by": "words"} },

The problem is that my solution doesn’t work well with Sublime’s focus groups, i.e. across multiple panes.

Let’s say I have two panes, and the left pane has focus. I want to select a word on the right pane, so I Ctrl+click it. Problem: The word appears selected, but the keyboard focus remains on the left pane. So when I Ctrl+C or type, it will affect a buffer in the wrong pane.

What do I need to do in order to activate the focus group under the cursor in addition to selecting words? Is this a bug? Is there any documentation on drag_select and the available arguments?

[Win 7 x64. Using ST3 build 3083. Same behavior in ST2.]

0 Likes