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
Feat CTRL + Y to submit the solution #1419
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
@sital002 is attempting to deploy a commit to the trash company Team on Vercel. A member of the Team first needs to authorize it. |
E2E report: https://256e75c8.typehero-70p.pages.dev |
packages/monaco/src/index.tsx
Outdated
const onSubmit = (e: KeyboardEvent) => { | ||
if ((e.ctrlKey || e.metaKey) && e.code === 'KeyY') { | ||
e.preventDefault(); | ||
if (submitButtonRef.current) { |
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.
you don’t need to simulate clicking the button. just call the same function
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 tried calling the handleSubmit function but when directly calling the handleSubmit the tsErros will be undefined so every submit 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.
hmm i’ll take a look
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.
quick update it's now working the linter didn't give me any warning regarding missing dependency.
@bautistaaa can you review this PR. |
Description
I have added a shortcut (CTRL + Y )to submit the solution.
Related Issue
Closes #1408
Motivation and Context
How Has This Been Tested?
Screenshots/Video (if applicable):