From 848aa7e8384117a306dbe6bb36e74900401f9a42 Mon Sep 17 00:00:00 2001 From: Paul Kaplan Date: Fri, 30 Mar 2018 12:58:17 -0400 Subject: [PATCH] Disable keyboard shortcuts because they interfere with text tool --- src/containers/paint-editor.jsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/containers/paint-editor.jsx b/src/containers/paint-editor.jsx index f9af0a8f..a756810e 100644 --- a/src/containers/paint-editor.jsx +++ b/src/containers/paint-editor.jsx @@ -55,10 +55,12 @@ class PaintEditor extends React.Component { }; } componentDidMount () { - document.addEventListener('keydown', event => { + document.addEventListener('keydown', _event => { // Don't activate keyboard shortcuts during text editing if (!this.props.textEditing) { - this.props.onKeyPress(event); + // @todo disabling keyboard shortcuts because there is a bug + // that is interfering with text editing. + // this.props.onKeyPress(_event); } }); // document listeners used to detect if a mouse is down outside of the