Hi Quill Team,
I am currently using Quill 2.0.2 on Windows 10 with Firefox 126.0.1. I encountered an issue with the "Shift + Enter" keyboard shortcut: it does not seem to work as expected. Specifically, when I press "Shift + Enter" while writing text in the editor, it always creates a new paragraph (
) instead of inserting a line break (
).
Here is a snippet of my current implementation:
var quill = new Quill('#editor', {
theme: 'snow'
});
quill.keyboard.addBinding({
key: 13, // Enter key
shiftKey: true
}, function(range, context) {
quill.insertText(range.index, '\n');
quill.setSelection(range.index + 1);
});
Could you help me understand what might be going wrong?
Hi Quill Team,
I am currently using Quill 2.0.2 on Windows 10 with Firefox 126.0.1. I encountered an issue with the "Shift + Enter" keyboard shortcut: it does not seem to work as expected. Specifically, when I press "Shift + Enter" while writing text in the editor, it always creates a new paragraph (
) instead of inserting a line break (
).
Here is a snippet of my current implementation:
Could you help me understand what might be going wrong?