Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion public/assets/bundle.js

Large diffs are not rendered by default.

7 changes: 6 additions & 1 deletion src/keyboard-shortcuts/escape-editing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,12 @@ export const escapeEditing: KeyEventDefinition = {
keys: ['esc', 'enter'],
description: 'Stop editing the current node and return to "navigation" mode',
action: async args => {
const { cursor, outline, api, search } = args;
const { e, cursor, outline, api, search } = args;
// if you press shift+enter, don't do anything
if (e.shiftKey && e.key === 'Enter') {
return;
}

cursor.get().classList.remove('hidden-cursor');

const contentNode = cursor.get().querySelector('.nodeContent') as HTMLElement;
Expand Down
Loading