Rename handler to match event
parent
a9d85dc02c
commit
d2e5a2bd86
|
@ -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)}
|
||||
>
|
||||
|
|
Loading…
Reference in New Issue