File tree 2 files changed +20
-7
lines changed
2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change @@ -168,7 +168,26 @@ class CodeServerService : Service() {
168
168
val stream = FileInputStream (configFile)
169
169
val data = stream.readBytes()
170
170
stream.close()
171
- return String (data)
171
+ return """
172
+ (function(){
173
+ let click = false;
174
+ let click2 = false;
175
+ const clickTimer = function(){
176
+ click=true;click2=true;
177
+ setTimeout(()=>{click=false;},300)
178
+ };
179
+ document.body.addEventListener('click', ()=>{click2=false;});
180
+ document.body.addEventListener('touchstart', clickTimer);
181
+ document.body.addEventListener('touchmove', ()=>{click=false;});
182
+ document.body.addEventListener('touchend', (e)=>{
183
+ if(click) {
184
+ setTimeout(()=>{
185
+ if(click2) e.target.click();
186
+ },100);
187
+ }
188
+ });
189
+ })()
190
+ """ .trimIndent() + String (data)
172
191
}
173
192
}
174
193
Original file line number Diff line number Diff line change 31
31
return this . _vscodeCode ;
32
32
}
33
33
} ) ;
34
- Object . defineProperty ( KeyboardEvent . prototype , 'altKey' , {
35
- get ( ) {
36
- prepareCustomProps . apply ( this ) ;
37
- return false ;
38
- }
39
- } ) ;
40
34
} ) ( )
You can’t perform that action at this time.
0 commit comments