Skip to content

#12203 Fixes VSCode modal inform message focus#12206

Merged
msujew merged 3 commits intoeclipse-theia:masterfrom
Zebsterpasha:bugfix
Feb 22, 2023
Merged

#12203 Fixes VSCode modal inform message focus#12206
msujew merged 3 commits intoeclipse-theia:masterfrom
Zebsterpasha:bugfix

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 pnik@1c.ru

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 <pnik@1c.ru>
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 :)

Zebsterpasha and others added 2 commits February 22, 2023 16:54
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