Don't close cell headers when editing.

pull/1189/head
Hunter Trujillo 2017-04-05 10:03:28 -06:00
parent 8e0dfa43f4
commit bace483af4
1 changed files with 4 additions and 1 deletions

View File

@ -80,6 +80,9 @@ const NameableGraph = React.createClass({
if (evt.key === 'Enter') {
onUpdateCell(cell)()
}
if (evt.key === 'Escape') {
onEditCell(x, y, false)()
}
}}
/>
)
@ -88,7 +91,7 @@ const NameableGraph = React.createClass({
}
let onClickHandler
if (isEditable) {
if (!isEditing && isEditable) {
onClickHandler = onEditCell
} else {
onClickHandler = () => {