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

#12203 Fixes VSCode modal inform message focus #12206

Merged
merged 3 commits into from
Feb 22, 2023

Conversation

Zebsterpasha
Copy link
Contributor

@Zebsterpasha Zebsterpasha commented Feb 22, 2023

Fixes VSCode modal information message focus.
Now focus will be on the first button, not on a background as it was before.

Closes #12203
Closes #12204
Signed-off-by: Pavel Nikolaev [email protected]

What it does

Added a condition, if there is a first button on a Modal Message, it will be created by appendAcceptButton, other buttons will be created with createButton, except "Cancel".

How to test

  1. Start Theia and install the extension modalinformmessage-0.0.1.zip
  2. Call the comand "Focus Test"
  3. It will open the dialog and focus will be on the first button (onot on a background as it was before)
  4. If you press "Enter", the dialog will close and notification "Button was onFocus" will pop up.

Review checklist

Reminder for reviewers

Fixes VSCode modal information message focus.
Now focus will be on the first button, not on a background as it was before.
Issue eclipse-theia#12203
Signed-off-by: Pavel Nikolaev <[email protected]>
Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Hey @Zebsterpasha, thank you for your contribution :)

Copy link
Member

@msujew msujew left a comment

Choose a reason for hiding this comment

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

Thanks, looks good to me 👍

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
notifications issues related to notifications vscode issues related to VSCode compatibility
Projects
None yet
Development

Successfully merging this pull request may close these issues.

[VSCode] Modal Information Message doesn't take focus on the first button
3 participants