Skip to content

Commit a6e6893

Browse files
save file
1 parent 00654e8 commit a6e6893

1 file changed

Lines changed: 2 additions & 16 deletions

File tree

html/chat-room/html/chat-room-open/chat-room-open.html

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@
120120

121121
var info = $(shadow,'#info');
122122

123-
$(shadow,'#txt').onkeydown = kd.user;
123+
$(shadow,'#txt').onkeydown = kd.txt;
124124
$(shadow,'#txt').focus();
125125

126126
$(shadow,'[value=send]').onclick = btn.send;
@@ -134,21 +134,7 @@
134134
//:
135135

136136

137-
btn.password = function(){
138-
139-
$(shadow,'#txt').focus();
140-
141-
var node = $(shadow,'#password');
142-
if(node.getAttribute('type')=='password'){
143-
node.removeAttribute('type');
144-
}else{
145-
node.setAttribute('type','password');
146-
}
147-
148-
}//password
149-
150-
151-
kd.user = function(e){
137+
kd.txt = function(e){
152138
//console.log(e.ctrlKey,e.key);
153139
if(e.ctrlKey && e.key=='Enter'){
154140
btn.send();

0 commit comments

Comments
 (0)