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

[safari] fix incorrect command palette cursor position #6435

Merged
merged 1 commit into from
Nov 1, 2019

Conversation

vince-fugnitto
Copy link
Member

@vince-fugnitto vince-fugnitto commented Oct 22, 2019

What it does

Fixes #6011

Fixes incorrect command palette cursor position especially on Safari browser.
Added additional handling to verify that if no selection is currently present,
force the cursor at the end of the input. Inspired by a similar implementation
in VS Code.

How to test

  1. open the command palette ctrlcmd+shift+p
  2. ensure that the cursor is placed at the end of the prefix
  3. verify in multiple browsers (ex: Safari, Chrome, Firefox)

Review checklist

Reminder for reviewers

Signed-off-by: Vincent Fugnitto vincent.fugnitto@ericsson.com

Fixes #6011

Fixes incorrect command palette cursor position especially on Safari browser.
Added additional handling to verify that if no selection is currently present,
force the cursor at the end of the input. Inspired by a similar implementation
in VS Code.

Signed-off-by: Vincent Fugnitto <vincent.fugnitto@ericsson.com>
@vince-fugnitto vince-fugnitto added bug bugs found in the application quick-open issues related to the quick-open browser/safari issues related to the safari browser labels Oct 22, 2019
@lmcbout
Copy link
Contributor

lmcbout commented Oct 23, 2019

Code wise: OK

Tested on Ubuntu 16.04
Chrome: before and after the fix, no change: working
Firefox: "ctrl+ shift + p" open a private browser, not the quick command. : Unable to see the cursor position when opening the quick menu from the key binding.

Safari: I don't have it, :(

Electron: before and after: same behavior: working fine

@vince-fugnitto
Copy link
Member Author

Chrome: before and after the fix, no change: working

👍

Firefox: "ctrl+ shift + p" open a private browser, not the quick command. : Unable to see the cursor position when opening the quick menu from the key binding.

I am able to see the cursor on Firefox (verified with and without a private window).

Safari: I don't have it :(

You can verify at work using the Macbook.

Electron: before and after: same behavior: working fine

👍

Copy link
Contributor

@kittaakos kittaakos left a comment

Choose a reason for hiding this comment

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

I have checked in FF, Chrome, and Safari. FF and Chrome are the same as they were, and now it works in Safari too.

Thank you! 👍

@vince-fugnitto
Copy link
Member Author

The CQ has been approved, I will proceed with merging.
Thank you @kittaakos for the review :)

@vince-fugnitto vince-fugnitto merged commit 2c13528 into master Nov 1, 2019
@vince-fugnitto vince-fugnitto deleted the vf/GH-6011 branch November 1, 2019 12:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
browser/safari issues related to the safari browser bug bugs found in the application quick-open issues related to the quick-open
Projects
None yet
Development

Successfully merging this pull request may close these issues.

When opening command palette by cmd+shift+p, the cursor is to the left of ">" sign
3 participants