-
-
Notifications
You must be signed in to change notification settings - Fork 419
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
fix: keyboard controller should attach event on document #8801
base: master
Are you sure you want to change the base?
fix: keyboard controller should attach event on document #8801
Conversation
|
The latest updates on your projects. Learn more about Vercel for Git ↗︎
1 Skipped Deployment
|
Your org has enabled the Graphite merge queue for merging into masterAdd the label “merge” to the PR and Graphite will automatically add it to the merge queue when it’s ready to merge. You must have a Graphite account and log in to Graphite in order to use the merge queue. Sign up using this link. |
☁️ Nx Cloud ReportCI is running/has finished running commands for commit 51e94f6. As they complete they will appear below. Click to see the status, the terminal output, and the build insights. 📂 See all runs for this CI Pipeline Execution ✅ Successfully ran 1 targetSent with 💌 from NxCloud. |
size-limit report 📦
|
this.spaceKey$.value = false; | ||
} | ||
}) | ||
); | ||
} | ||
|
||
private _isEditableElement(evt: HTMLElement) { | ||
return evt.closest('input, textarea, [contenteditable="true")') !== null; |
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.
There's a syntax error in the CSS selector - [contenteditable="true")
has an unmatched parenthesis instead of a closing bracket. The correct selector should be [contenteditable="true"]
.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
|
||
this.shiftKey$.value = state.raw.shiftKey && state.raw.key === 'Shift'; | ||
this._listenKeyboard('keyup', evt => { | ||
this.shiftKey$.value = evt.shiftKey ? true : false; |
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.
The shiftKey$
state handling in the keyup
handler differs from the keydown
logic. Currently, it will set shiftKey$
to true
whenever any key is released while the shift key is held. To maintain consistency with the keydown
behavior, the condition should be evt.shiftKey && evt.key === "Shift"
.
Spotted by Graphite Reviewer
Is this helpful? React 👍 or 👎 to let us know.
No description provided.