Merge pull request #16360 from fhavrlent/fix/completition-modal-cmd-key
fix(challenges): Change e.meta to e.metaKey
This commit is contained in:
@ -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());
|
||||
}
|
||||
},
|
||||
|
Reference in New Issue
Block a user