mirror of
https://github.com/outline/outline.git
synced 2026-11-28 00:09:58 +03:00
fix: CMD+Eneter in title should still publish
This commit is contained in:
1 parent
4de3f69474
commit
b54901d50c
1 file changed
+1
-1
@@ -50,7 +50,7 @@ class DocumentEditor extends React.Component<Props> {
|
||||
};
|
||||
|
||||
handleTitleKeyDown = (event: SyntheticKeyboardEvent<>) => {
|
||||
if (event.key === "Enter") {
|
||||
if (event.key === "Enter" && !event.metaKey) {
|
||||
event.preventDefault();
|
||||
this.insertParagraph();
|
||||
this.focusAtStart();
|
||||
|
||||
Reference in new issue
Block a user