-
Notifications
You must be signed in to change notification settings - Fork 187
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
#1902 Save hotkey CTRL+S: An atom or structure copied to the clipboard is saved with coordinates #1956
#1902 Save hotkey CTRL+S: An atom or structure copied to the clipboard is saved with coordinates #1956
Conversation
porcelain11
commented
Dec 19, 2022
- Refactor savebutton module to get rid of onSave error
- Update keyHandle function (dispatching change tool action, when paste tool is selected and user pushes ctrl + s)
…le to remove not rendered structure from one to be saved
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.
LGTM
packages/ketcher-react/src/script/ui/component/view/savebutton.tsx
Outdated
Show resolved
Hide resolved
className={className} | ||
onClick={(event) => { | ||
save(event) | ||
}} | ||
{...props} | ||
// TODO: remove this, if it doesn't fire errors - hardly we need all these props |
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.
Does it make sense to add a follow-up story to remove this? So we don't need additional effort trying to recall if we need these props in the future? Wonder what the team thinks
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.
If you've worked with this piece of code and understood, what it is used for, then I propose to remove this.
If not, then it is better not to change current behaviour.
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.
Removed
…copied-to-clipboard-is-saved-with-coordinates
…copied-to-clipboard-is-saved-with-coordinates