Skip to content

Commit 34da77f

Browse files
save file
1 parent a6e6893 commit 34da77f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

html/chat-room/html/chat-room-simple/chat-room-simple.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,7 +160,7 @@
160160
var info = $(shadow,'#info');
161161
$(info,'#show').onclick = btn.password;
162162

163-
$(shadow,'#txt').onkeydown = kd.user;
163+
$(shadow,'#txt').onkeydown = kd.txt;
164164
$(shadow,'#txt').focus();
165165

166166
$(shadow,'[value=send]').onclick = btn.send;
@@ -188,7 +188,7 @@
188188
}//password
189189

190190

191-
kd.user = function(e){
191+
kd.txt = function(e){
192192
//console.log(e.ctrlKey,e.key);
193193
if(e.ctrlKey && e.key=='Enter'){
194194
btn.send();

0 commit comments

Comments
 (0)