Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bug Report - In filter, not possible to get cursor between 2 spaces with arrow keys (on osx)?? #4089

Closed
toja83 opened this issue Feb 23, 2023 · 2 comments

Comments

@toja83
Copy link

toja83 commented Feb 23, 2023

On OSX in the filters if I start creating a query and make two spaces I am not able to get in between these spaces using arrow keys! Is this a setting or a bug?!!

If start creating a query like:
{ _id: { } }
or
{ _id: { $in: [ ] } }
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)??

Thanks!

I headed over to https://jira.mongodb.org/projects/COMPASS/issues/ but could not find a way to post a new issues in there!
If this issue is created/moved to Jira, can you please link the Jira issue to this issue?!

@Anemy
Copy link
Member

Anemy commented Feb 23, 2023

Hi @toja83 - thanks for reporting this issue. I don't think we've seen this come up before.
I created a bug ticket on jira to track it: https://jira.mongodb.org/browse/COMPASS-6554
You can watch that issue for updates.
A bit more context, I think this is likely caused by our current editor, ace. We've been looking at changing from ace editor to codemirror. That's tracked in https://jira.mongodb.org/browse/COMPASS-6481 so this might go away with those changes if we don't address it sooner.

@Anemy
Copy link
Member

Anemy commented May 19, 2023

@toja83 This is fixed in our newest release. We've updated all of our editors to code mirror. Thanks again for bringing it up!

@Anemy Anemy closed this as completed May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants