Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.

Make ctrl+click add a new cursor in Linux and Windows, fixes #2105 - #2246

Merged
kevinsawicki merged 1 commit into
atom:masterfrom
flannelhead:master
May 15, 2014
Merged

kevinsawicki merged 1 commit into
atom:masterfrom
flannelhead:master

Conversation

@flannelhead

Copy link
Copy Markdown

In Chromium the metaKey property of a mousedown event might never get set to true on Linux and Windows as there is no special, well defined meta key on the keyboard (see this issue). Hence I made editor-view.coffee check for e.ctrlKey instead if the platform is not Mac, which makes ctrl+click to add a cursor as desired.

@GeoffreyFrogeye

Copy link
Copy Markdown
Contributor

Nice commit! Waited to get this feature.
However, that would be great if the key used to add a new cursor could be managed with `keymaps/*.cson'. Not with the current implementation though.

@flannelhead

Copy link
Copy Markdown
Author

I totally agree on that one. This feature would certainly benefit from reimplementation. However I'm afraid I don't have enough time nor experience to do the change alone. This PR may be rejected in favour of a better implementation, allowing configuration, but at least I've spotted the cause of the issue.

@jvperrin

Copy link
Copy Markdown

@GeoffreyFrogeye I think the real issue here is how to configure features that include the use of the mouse. So far, as far as I can see, there is no way to customize any of the actions that use the mouse. Maybe a mousemaps.cson is needed? I'm not sure the best way to configure this, but I like the idea of having some kind of configuration for it.

kevinsawicki added a commit that referenced this pull request May 15, 2014
Make ctrl+click add a new cursor in Linux and Windows, fixes #2105
@kevinsawicki
kevinsawicki merged commit 2bef7e2 into atom:master May 15, 2014
@kevinsawicki

Copy link
Copy Markdown
Contributor

Thanks for this

@kevinsawicki

Copy link
Copy Markdown
Contributor

However, that would be great if the key used to add a new cursor could be managed with `keymaps/*.cson'. Not with the current implementation though.

Mind opening a separate issue for this?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants