Skip to content
This repository was archived by the owner on Mar 3, 2023. It is now read-only.
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

Closed

Description

@notslang

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.

Activity

  1. sylwit commented on May 9, 2014

    @sylwit

    same bug. Unable to set cursors on several lines on ubuntu 14.04

  2. sgtpepper43 commented on May 12, 2014

    @sgtpepper43

    This needs to be fixed so bad

  3. sodapopcoolfizz commented on May 13, 2014

    @sodapopcoolfizz

    Same thing on Ubuntu 14.04.

  4. erikdonohoo commented on May 13, 2014

    @erikdonohoo

    Yep yep yep. I wish there was something you could add to your keymap.cson for this

  5. nshtg commented on May 14, 2014

    @nshtg

    Can confirm this problem exists on windows too. Need to have!!!!

  6. mauriciomelo commented on May 15, 2014

    @mauriciomelo

    This needs to be fixed @ Ubuntu 14.04

  7. flannelhead commented on May 15, 2014

    @flannelhead

    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).

  8. notslang commented on May 15, 2014

    @notslang
    Author

    yay! thank you @kevinsawicki!

  9. sylwit commented on May 15, 2014

    @sylwit

    Thank you @kevinsawicki

  10. mauriciomelo commented on May 16, 2014

    @mauriciomelo
  11. dwayne commented on May 22, 2014

    @dwayne

    Just updated. Thank you @kevinsawicki

  12. flannelhead commented on Jun 14, 2014

    @flannelhead

    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 ?

  13. izuzak commented on Jun 18, 2014

    @izuzak
    Contributor

    Thanks for pointing this out @flannelhead! Reopening this and tagging with react-editor

    cc @kevinsawicki @nathansobo

  14. reopened this on Jun 18, 2014
  15. self-assigned this
    on Jun 23, 2014
  16. added a commit that references this issue on Jun 23, 2014
    64e2b53
  17. kevinsawicki commented on Jun 23, 2014

    @kevinsawicki
    Contributor

    This should now work with the React editor on master.

  18. lock commented on Jan 26, 2019

    @lock

    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!

  19. locked as resolved and limited conversation to collaborators on Jan 26, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

linux

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions