[COMPASS-6554] In filter, not possible to get cursor between 2 spaces with arrow keys (on osx) Created: 23/Feb/23  Updated: 29/Oct/23  Resolved: 19/May/23

Status: Closed
Project: Compass
Component/s: Query Bar
Affects Version/s: None
Fix Version/s: 1.36.4

Type: Bug Priority: Major - P3
Reporter: Rhys Howell Assignee: Unassigned
Resolution: Fixed Votes: 0
Labels: query
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified
Environment:

OS:
node.js / npm versions:
Additional info:


Issue Links:
Related
is related to COMPASS-6481 Replace ace editors in compass with c... Closed
Documentation Changes: Not Needed

 Description   

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



 Comments   
Comment by Rhys Howell [ 19/May/23 ]

Fixed with moving editors to code mirror

Generated at Wed Feb 07 22:43:34 UTC 2024 using Jira 9.7.1#970001-sha1:2222b88b221c4928ef0de3161136cc90c8356a66.