We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7aaaafe commit 3a62b6eCopy full SHA for 3a62b6e
frontend/src/components/atoms/BlockContent/BlockContent.tsx
@@ -170,6 +170,13 @@ function BlockContent(blockDTO: Block) {
170
Dispatcher((event.shiftKey ? 'shift' : '') + event.key);
171
throttleState.isThrottle = false;
172
});
173
+ } else if (event.key === 'Enter' && event.shiftKey) {
174
+ const { textContent } = contentEditableRef.current;
175
+ const caretOffset = window.getSelection().focusOffset;
176
+ const cvTextContent = textContent
177
+ .slice(0, caretOffset)
178
+ .concat('\n', textContent.slice(caretOffset));
179
+ handleBlock(cvTextContent, null, caretOffset + 1);
180
}
181
};
182
0 commit comments