Show modal on Ctrl+Enter for new action in Editor

Added logic to display the modal when Ctrl+Enter is pressed and the current action is 'new', improving the user workflow for creating new items.
This commit is contained in:
2025-08-06 23:59:50 +01:00
parent 59af15d5c6
commit 64faf93a11

View File

@@ -364,6 +364,8 @@ const Editor = () => {
event.preventDefault();
if (action === 'edit') {
save();
} else if (action === 'new') {
setModalVisible(true);
}
}
};