Merge pull request #16360 from fhavrlent/fix/completition-modal-cmd-key

fix(challenges): Change e.meta to e.metaKey
This commit is contained in:
Berkeley Martinez
2017-12-28 20:44:57 -08:00
committed by GitHub

View File

@ -28,7 +28,7 @@ const mapDispatchToProps = function(dispatch) {
const dispatchers = {
close: () => dispatch(closeChallengeModal()),
handleKeypress: (e) => {
if (e.keyCode === 13 && (e.ctrlKey || e.meta)) {
if (e.keyCode === 13 && (e.ctrlKey || e.metaKey)) {
dispatch(submitChallenge());
}
},