1
0
mirror of https://github.com/ianstormtaylor/slate.git synced 2025-04-21 13:51:59 +02:00

fix arrow key breaking bug

This commit is contained in:
Ian Storm Taylor 2016-07-19 11:32:48 -07:00
parent 5c5c92bff3
commit 1e433b36ae

View File

@ -263,7 +263,7 @@ class Content extends React.Component {
if (
this.tmp.isComposing &&
key == 'left' || key == 'right' || key == 'up' || key == 'down'
(key == 'left' || key == 'right' || key == 'up' || key == 'down')
) {
e.preventDefault()
return