Skip to content
This repository has been archived by the owner on Nov 28, 2022. It is now read-only.

🐛 Make cmd+s work for all save-buttons #700

Merged
merged 3 commits into from
May 18, 2017

Conversation

aileen
Copy link
Member

@aileen aileen commented May 17, 2017

closes TryGhost/Ghost#8443

Fixes a bug where the keyboard shortcut cmd+s would cause a Maximum call stack size error and not save.
Wherever there is a save button, the keyboard shortcut to save works now.

@aileen aileen requested a review from kevinansfield May 17, 2017 01:20
@coveralls
Copy link

Coverage Status

Coverage decreased (-0.09%) to 71.296% when pulling 87185b9 on AileenCGN:fix-save-keyboard-shortcut into fac2560 on TryGhost:master.

Copy link
Member

@kevinansfield kevinansfield left a comment

Choose a reason for hiding this comment

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

Fix looks good 👍 I think this would be a good time to ensure that we're testing the CMD-S behaviour - it's something we've had issues with before too.

I've pushed a commit with a test for settings/general (I wanted to make sure it was possible before asking!), hopefully it'll be pretty easy to duplicate to the tests for other screens 😄

@aileen
Copy link
Member Author

aileen commented May 17, 2017

Awesome!! Will adapt it for the other changes as well!

@aileen aileen force-pushed the fix-save-keyboard-shortcut branch from c888195 to 21f102e Compare May 18, 2017 06:27
@aileen
Copy link
Member Author

aileen commented May 18, 2017

Added tests @kevinansfield to wherever we have a save button.

@aileen
Copy link
Member Author

aileen commented May 18, 2017

Hmmm.... That's weird... The tests pass all locally... 🤔

aileen and others added 3 commits May 18, 2017 17:02
closes TryGhost/Ghost#8443

Fixes a bug where the keyboard shortcut `cmd+s` would cause a `Maximum call stack size` error and not save.
Wherever there is a `save` button, the keyboard shortcut to save works now.
@aileen aileen force-pushed the fix-save-keyboard-shortcut branch from 21f102e to d61b9f5 Compare May 18, 2017 09:44
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 71.783% when pulling d61b9f5 on AileenCGN:fix-save-keyboard-shortcut into d49484a on TryGhost:master.

@kevinansfield
Copy link
Member

It's ✅! 😁

@kevinansfield kevinansfield merged commit 371b9fd into TryGhost:master May 18, 2017
@aileen aileen deleted the fix-save-keyboard-shortcut branch October 13, 2017 09:42
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

CMD+S fails on settings/design
3 participants