We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 00654e8 commit a6e6893Copy full SHA for a6e6893
1 file changed
html/chat-room/html/chat-room-open/chat-room-open.html
@@ -120,7 +120,7 @@
120
121
var info = $(shadow,'#info');
122
123
- $(shadow,'#txt').onkeydown = kd.user;
+ $(shadow,'#txt').onkeydown = kd.txt;
124
$(shadow,'#txt').focus();
125
126
$(shadow,'[value=send]').onclick = btn.send;
@@ -134,21 +134,7 @@
134
//:
135
136
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){
+ kd.txt = function(e){
152
//console.log(e.ctrlKey,e.key);
153
if(e.ctrlKey && e.key=='Enter'){
154
btn.send();
0 commit comments