1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-27 06:01:54 +03:00

Lexical: Range of fixes

- Prevented ui shortcuts running in editor
- Added form modal closing on submit
- Fixed ability to escape lists via enter on empty last item
This commit is contained in:
Dan Brown
2024-09-22 16:15:02 +01:00
parent ef3de1050f
commit c8ccb2bac7
6 changed files with 38 additions and 15 deletions

View File

@ -25,7 +25,7 @@ export class Shortcuts extends Component {
setupListeners() {
window.addEventListener('keydown', event => {
if (event.target.closest('input, select, textarea, .cm-editor')) {
if (event.target.closest('input, select, textarea, .cm-editor, .editor-container')) {
return;
}