From 03f577bea9fa8bed0f038c9138e19c85a568a2a9 Mon Sep 17 00:00:00 2001 From: Bruno Windels Date: Wed, 17 Jul 2019 17:23:19 +0200 Subject: [PATCH] use keydown here, as its a div element --- src/components/views/elements/PowerSelector.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/components/views/elements/PowerSelector.js b/src/components/views/elements/PowerSelector.js index 9b886e7cb3..4089c4dd86 100644 --- a/src/components/views/elements/PowerSelector.js +++ b/src/components/views/elements/PowerSelector.js @@ -113,7 +113,7 @@ module.exports = React.createClass({ this.props.onChange(parseInt(this.state.customValue), this.props.powerLevelKey); }, - onCustomKeyPress: function(event) { + onCustomKeyDown: function(event) { if (event.key === "Enter") { event.preventDefault(); event.stopPropagation(); @@ -133,7 +133,7 @@ module.exports = React.createClass({ picker = ( ); } else {