You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
ctrl+click to add a cursor doesn't work on linux #2105
cmd+click works to add a cursor on mac, but ctrl+click doesn't work on linux. Also there's no listing in the keyboard shortcuts section of settings, otherwise I would have just added it to my keymap.cson.
This is related to what Chromium regards as a "meta key". In editor-view.coffee mousedown events are handled as follows:
@renderedLines.on 'mousedown', (e) =>
clickCount = e.originalEvent.detail
screenPosition = @screenPositionFromMouseEvent(e)
if clickCount == 1
if e.metaKey
@editor.addCursorAtScreenPosition(screenPosition)
etc.
Due to a Chromium issue, the e.metaKey might never get set to true on Linux, as there really isn't any consistent key "meta" on most keyboards. Maybe this check for a keyboard modifier should be platform dependent (ie. check for e.ctrlKey instead if on Linux).
Btw, this issue still exists in the React editor (obviously, because the fix didn't affect React at all). However, it was requested to be able to configure mousebindings in a separate file (#2256). That would also fix this issue in a sophisticated way. It might be a while, though, before this gets implemented, so should ctrl+click still be fixed in the meantime in a simple way as I did in #2246 ?
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!
Activity
sylwit commentedon May 9, 2014
same bug. Unable to set cursors on several lines on ubuntu 14.04
sgtpepper43 commentedon May 12, 2014
This needs to be fixed so bad
sodapopcoolfizz commentedon May 13, 2014
Same thing on Ubuntu 14.04.
erikdonohoo commentedon May 13, 2014
Yep yep yep. I wish there was something you could add to your
keymap.csonfor thisnshtg commentedon May 14, 2014
Can confirm this problem exists on windows too. Need to have!!!!
mauriciomelo commentedon May 15, 2014
This needs to be fixed @ Ubuntu 14.04
flannelhead commentedon May 15, 2014
This is related to what Chromium regards as a "meta key". In editor-view.coffee mousedown events are handled as follows:
Due to a Chromium issue, the e.metaKey might never get set to true on Linux, as there really isn't any consistent key "meta" on most keyboards. Maybe this check for a keyboard modifier should be platform dependent (ie. check for e.ctrlKey instead if on Linux).
notslang commentedon May 15, 2014
yay! thank you @kevinsawicki!
sylwit commentedon May 15, 2014
Thank you @kevinsawicki
mauriciomelo commentedon May 16, 2014
Thank you @flannelhead @kevinsawicki
dwayne commentedon May 22, 2014
Just updated. Thank you @kevinsawicki
flannelhead commentedon Jun 14, 2014
Btw, this issue still exists in the React editor (obviously, because the fix didn't affect React at all). However, it was requested to be able to configure mousebindings in a separate file (#2256). That would also fix this issue in a sophisticated way. It might be a while, though, before this gets implemented, so should ctrl+click still be fixed in the meantime in a simple way as I did in #2246 ?
izuzak commentedon Jun 18, 2014
Thanks for pointing this out @flannelhead! Reopening this and tagging with react-editor
cc @kevinsawicki @nathansobo
Add cursor with ctrl-click on Windows/Linux
kevinsawicki commentedon Jun 23, 2014
This should now work with the React editor on master.
lock commentedon Jan 26, 2019
This issue has been automatically locked since there has not been any recent activity after it was closed. If you can still reproduce this issue in Safe Mode then please open a new issue and fill out the entire issue template to ensure that we have enough information to address your issue. Thanks!