Skip to content
This repository has been archived by the owner on Apr 6, 2021. It is now read-only.

Right-Alt doesn't work for adding multiple cursors (necessary for ChromeOS) #98

Open
Zacqary opened this issue Jun 16, 2015 · 4 comments

Comments

@Zacqary
Copy link

Zacqary commented Jun 16, 2015

Left-Alt+Click on ChromeOS maps to a right click. This makes it impossible to add multiple cursors on Cloud9. This behavior is built into ChromeOS and is impossible to disable.

Right-Alt+Click doesn't map to a right click on ChromeOS, but it doesn't add a second cursor in Cloud9. Allowing users to add a second user using Right-Alt instead of just Left-Alt should be an effective workaround when using Cloud9 on a Chromebook.

@nightwing
Copy link
Contributor

Ace accepts both left and right Alt as click modifiers. It just uses event.altKey property here.
Which keyboard layout do you use? with some keyboard layouts left alt is interpreted as alt-gr and sets both event.altKey and event.ctrlKey to true.

@Zacqary
Copy link
Author

Zacqary commented Jun 20, 2015

You're absolutely right, I had US Extended on. I feel really stupid.

That probably means ChromeOS actually does interpret Right Alt as a right
click as well, so that's back to square one.

Is there a way to change the key binding for clicking to add multiple
cursors? I wasn't able to find it in the Preferences pane.
On Jun 20, 2015 8:07 AM, "Harutyun Amirjanyan" [email protected]
wrote:

Ace accepts both left and right Alt as click modifiers. It just uses
event.altKey property here
https://github.com/c9/core/blob/02d1ba40/node_modules/ace/lib/ace/mouse/multi_select_handler.js#L43
.
Which keyboard layout do you use? with some keyboard layouts left alt is
interpreted as alt-gr and sets both event.altKey and event.ctrlKey to
true.


Reply to this email directly or view it on GitHub
#98 (comment).

@danferth
Copy link

Yup this one is driving me crazy too. Maybe custom keybindings in c9?

@danferth
Copy link

yes you can! open preferences and select key bindings to edit addCursorBelow and whatnot, I changed it to ctrl+alt+l and boom bobs your uncle!

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants