Fixes: Hitting 'e' shortcut should not add an e to the document
This commit is contained in:
@ -69,9 +69,13 @@ type Props = {
|
|||||||
}
|
}
|
||||||
|
|
||||||
@keydown('e')
|
@keydown('e')
|
||||||
goToEdit() {
|
goToEdit(ev) {
|
||||||
if (!this.props.documents.active) return;
|
const activeDocument = this.props.documents.active;
|
||||||
this.props.history.push(documentEditUrl(this.props.documents.active));
|
if (!activeDocument) return;
|
||||||
|
|
||||||
|
ev.preventDefault();
|
||||||
|
ev.stopPropagation();
|
||||||
|
this.props.history.push(documentEditUrl(activeDocument));
|
||||||
}
|
}
|
||||||
|
|
||||||
handleLogout = () => {
|
handleLogout = () => {
|
||||||
|
Reference in New Issue
Block a user