Uploaded image for project: 'Compass '
  1. Compass
  2. COMPASS-6554

In filter, not possible to get cursor between 2 spaces with arrow keys (on osx)

    • Type: Icon: Bug Bug
    • Resolution: Fixed
    • Priority: Icon: Major - P3 Major - P3
    • 1.36.4
    • Affects Version/s: None
    • Component/s: Query Bar
    • Labels:
    • Environment:
      OS:
      node.js / npm versions:
      Additional info:
    • Not Needed

      Reported on GitHub: https://github.com/mongodb-js/compass/issues/4089 

      On OSX when creating a query and two spaces are inputted it isn't possible to get in between the spaces using arrow keys. Looks like a bug, maybe ace editor is doing something. It might be a feature on many editors to double space to enter a period character. We should visit if this is intended in the sort of editing environments we're showing, I'm thinking probably not.

      From the reporter:

      If start creating a query like:
      Unknown macro: { _id}
      }
      or
      Unknown macro: { _id}
      }
      Then I cant use arrow keys to move into the "middle" of either { } or [ ] which has 2 spaces in them.
      The cursor just "jump" over the 2 spaces and I have to use the mouse to put the cursor in the middle.
      This is a very irritating behaviour and I have searched through settings to see if this is something I can turn off, but have not found anything. Is this a known bug or expected behaviour (in that case what is the meaning of the behaviour)??

            Assignee:
            Unassigned Unassigned
            Reporter:
            rhys.howell@mongodb.com Rhys Howell
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: