fix(challenges): Change e.meta to e.metaKey

The Command + Enter was not working on Mac in completition modal

Closes #16352
This commit is contained in:
Filip Havrlent
2017-12-28 19:36:17 +01:00
parent 941e060da5
commit bed731d2ad

View File

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