removed enter
This commit is contained in:
@@ -319,6 +319,14 @@ document.addEventListener('DOMContentLoaded', function () {
|
||||
});
|
||||
// --- End drag-and-swap logic ---
|
||||
|
||||
// block enter key
|
||||
document.getElementById('boardForm').addEventListener('keydown', function (event) {
|
||||
if (event.key === 'Enter') {
|
||||
event.preventDefault();
|
||||
}
|
||||
});
|
||||
// end of block enter key
|
||||
|
||||
// On submit, copy preview lines to hidden fields
|
||||
const boardForm = document.getElementById('boardForm');
|
||||
if (boardForm) {
|
||||
|
||||
Reference in New Issue
Block a user