Skip to content
This repository has been archived by the owner on Feb 23, 2023. It is now read-only.

Prevent keyboard shortcuts in *[contenteditable] #2490

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/js/core.js
Expand Up @@ -936,7 +936,7 @@
// Enable keyboard navigation
// ==========================

if (!current.opts.keyboard || e.ctrlKey || e.altKey || e.shiftKey || $(e.target).is("input,textarea,video,audio,select")) {
if (!current.opts.keyboard || e.ctrlKey || e.altKey || e.shiftKey || $(e.target).is("input,textarea,video,audio,select,*[contenteditable]")) {
return;
}

Expand Down Expand Up @@ -3422,4 +3422,4 @@
}
});
})();
})(window, document, jQuery);
})(window, document, jQuery);