Skip to content
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

Conversation

porcelain11
Copy link
Collaborator

  1. Refactor savebutton module to get rid of onSave error
  2. 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
@porcelain11 porcelain11 changed the title Refactor savebutton, update keyHandle #1902 Update keyHandle Dec 19, 2022
@porcelain11 porcelain11 changed the title #1902 Update keyHandle #1902 An atom or structure copied to the clipboard is saved with coordinates fix Dec 19, 2022
Copy link
Collaborator

@epam-nikolai-iakushchenko epam-nikolai-iakushchenko left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

className={className}
onClick={(event) => {
save(event)
}}
{...props}
// TODO: remove this, if it doesn't fire errors - hardly we need all these props
Copy link
Collaborator

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

Copy link
Collaborator

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.

Copy link
Collaborator Author

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
@Nitvex Nitvex changed the title #1902 An atom or structure copied to the clipboard is saved with coordinates fix #1902 Save hotkey CTRL+S: An atom or structure copied to the clipboard is saved with coordinates Jan 10, 2023
@Nitvex Nitvex merged commit cc5a0ec into master Jan 10, 2023
@Nitvex Nitvex deleted the 1902-save-hotkey-ctrl-s-atom-or-structure-copied-to-clipboard-is-saved-with-coordinates branch January 10, 2023 14:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Save hotkey CTRL+S: An atom or structure copied to the clipboard is saved with coordinates
4 participants