diff --git a/src/components/menu-bar/save-status.jsx b/src/components/menu-bar/save-status.jsx index 9f83f6274..cb8e84e86 100644 --- a/src/components/menu-bar/save-status.jsx +++ b/src/components/menu-bar/save-status.jsx @@ -40,6 +40,14 @@ const SaveStatus = ({ )); +// Listen for Control/Command + S. +document.addEventListener("keydown", function(e) { + if (e.keyCode == 83 && (navigator.platform.match("Mac") ? e.metaKey : e.ctrlKey)) { + e.preventDefault(); + onClickSave(); + } +}, false); + SaveStatus.propTypes = { alertsList: PropTypes.arrayOf(PropTypes.object), onClickSave: PropTypes.func,