-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Fixed the focus on the interactive window #9813
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
Conversation
when pressing ctrl +2
Codecov Report
@@ Coverage Diff @@
## master #9813 +/- ##
==========================================
+ Coverage 60.88% 61.22% +0.34%
==========================================
Files 556 563 +7
Lines 30000 30058 +58
Branches 4548 4545 -3
==========================================
+ Hits 18265 18403 +138
+ Misses 10708 10627 -81
- Partials 1027 1028 +1
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As this is a fix for a regression, I'd like to have a functional test to ensure we do not regress again.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I second what Don said. A functional test would be great so we don't break this again.
order to give focus
Kudos, SonarCloud Quality Gate passed!
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
domDiv.focus(); | ||
|
||
// send the ctrl + 1/2 message, this should put focus back on the input box | ||
const message = createMessageEvent({ type: InteractiveWindowMessages.Activate, payload: undefined }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I don't see any tests for ctrl+1
keys
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It mentions ctrl+1
key, but we're not sending such key strokes!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, ignore that.
domDiv.focus(); | ||
|
||
// send the ctrl + 1/2 message, this should put focus back on the input box | ||
const message = createMessageEvent({ type: InteractiveWindowMessages.Activate, payload: undefined }); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Oops, ignore that.
For #9693
package-lock.json
has been regenerated by runningnpm install
(if dependencies have changed)