Fix keyboard save shortcut when saving a new file; closes #2427
This commit is contained in:
parent
da0b527715
commit
ff50940fa6
1 changed files with 7 additions and 1 deletions
|
@ -116,7 +116,13 @@ export default () => {
|
||||||
fetchContent={value => {
|
fetchContent={value => {
|
||||||
fetchFileContent = value;
|
fetchFileContent = value;
|
||||||
}}
|
}}
|
||||||
onContentSaved={save}
|
onContentSaved={() => {
|
||||||
|
if (action !== 'edit') {
|
||||||
|
setModalVisible(true);
|
||||||
|
} else {
|
||||||
|
save();
|
||||||
|
}
|
||||||
|
}}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div css={tw`flex justify-end mt-4`}>
|
<div css={tw`flex justify-end mt-4`}>
|
||||||
|
|
Loading…
Reference in a new issue