Rename handler to match event

pull/10616/head
Alex P 2018-02-07 10:26:48 -08:00
parent a9d85dc02c
commit d2e5a2bd86
1 changed files with 2 additions and 2 deletions

View File

@ -446,7 +446,7 @@ class CellEditorOverlay extends Component {
return prevQuery.source
}
handleHotKeyDown = e => {
handleKeyDown = e => {
if (e.key === 'Enter' && e.metaKey && e.target === this.overlayRef) {
this.handleSaveCell()
}
@ -487,7 +487,7 @@ class CellEditorOverlay extends Component {
return (
<div
className={OVERLAY_TECHNOLOGY}
onKeyDown={this.handleHotKeyDown}
onKeyDown={this.handleKeyDown}
tabIndex="0"
ref={r => (this.overlayRef = r)}
>