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

Stop the cursor from jumping when changing prefix in QuickAccess - v2 #204702

Merged

Conversation

a-stewart
Copy link
Contributor

This fixes #162914

When changing the prefix, we should check the cursor position on the currently visible picker (if one exists), and if so we should set this as the position for the new picker.

In addition to #198821 - to avoid causing cursor jumps when switching between modes via commands (bug #204572) - it only retains the cursor position if the text content is unchanged.

Example of how this works using a console log:
demo

@a-stewart a-stewart changed the title Stop the cursor from jumping when changing prefix in QuickAccess (#198821) - v2 Stop the cursor from jumping when changing prefix in QuickAccess - v2 Feb 8, 2024
@TylerLeonhardt TylerLeonhardt added this to the Backlog milestone Feb 13, 2024
@a-stewart
Copy link
Contributor Author

@TylerLeonhardt - friendly ping for this.

Copy link
Member

@TylerLeonhardt TylerLeonhardt left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems to work as expected. Thanks for following through with this!

@TylerLeonhardt TylerLeonhardt enabled auto-merge (squash) March 20, 2024 23:51
@TylerLeonhardt TylerLeonhardt modified the milestones: Backlog, March 2024 Mar 20, 2024
@TylerLeonhardt TylerLeonhardt merged commit 09d5f4e into microsoft:main Mar 21, 2024
6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
3 participants