mirror of
https://github.com/scratchfoundation/scratch-paint.git
synced 2024-12-22 21:42:30 -05:00
Merge pull request #352 from paulkaplan/disable-keyboard-shortcuts
Disable keyboard shortcuts because they interfere with text tool
This commit is contained in:
commit
7399d7d8f8
1 changed files with 4 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue