react-input-mask
Advanced tools
Comparing version 0.0.5 to 0.0.6
@@ -235,5 +235,7 @@ "use strict"; | ||
onKeyDown: function onKeyDown(event) { | ||
var hasHandler = typeof this.props.onKeyPress === "function"; | ||
var hasHandler = typeof this.props.onKeyDown === "function"; | ||
if (event.ctrlKey || event.metaKey) { | ||
this.props.onKeyDown(event); | ||
if (hasHandler) { | ||
this.props.onKeyDown(event); | ||
} | ||
return; | ||
@@ -240,0 +242,0 @@ } |
@@ -232,5 +232,7 @@ // https://github.com/sanniassin/react-input-mask | ||
onKeyDown: function(event) { | ||
var hasHandler = typeof this.props.onKeyPress === "function"; | ||
var hasHandler = typeof this.props.onKeyDown === "function"; | ||
if (event.ctrlKey || event.metaKey) { | ||
this.props.onKeyDown(event); | ||
if (hasHandler) { | ||
this.props.onKeyDown(event); | ||
} | ||
return; | ||
@@ -237,0 +239,0 @@ } |
{ | ||
"name": "react-input-mask", | ||
"description": "Masked input component for React", | ||
"version": "0.0.5", | ||
"version": "0.0.6", | ||
"homepage": "https://github.com/sanniassin/react-input-mask", | ||
@@ -6,0 +6,0 @@ "license": "MIT", |
29971
806