comparison src/chat.js @ 78:2a602ef53eef

minor
author Franklin Schmidt <fschmidt@gmail.com>
date Sun, 09 Mar 2025 22:20:36 -0600
parents 624654817f99
children b5a316575e64
comparison
equal deleted inserted replaced
77:624654817f99 78:2a602ef53eef
66 66
67 function textareaKey(event) { 67 function textareaKey(event) {
68 if( event.keyCode===13 && !event.shiftKey && !event.ctrlKey && !isMobile ) { 68 if( event.keyCode===13 && !event.shiftKey && !event.ctrlKey && !isMobile ) {
69 event.preventDefault(); 69 event.preventDefault();
70 addPost(); 70 addPost();
71 }
72 }
73
74 function editTextareaKey(event) {
75 if( event.keyCode===13 && !event.shiftKey && !event.ctrlKey && !isMobile ) {
76 event.preventDefault();
77 savePost(event.target);
71 } 78 }
72 } 79 }
73 80
74 function fixPosts() { 81 function fixPosts() {
75 let divs = document.querySelectorAll('div[post][fix]'); 82 let divs = document.querySelectorAll('div[post][fix]');