Spaces:
Running
Running
datasciencesage
commited on
updated the file
Browse files- templates/terminal.html +5 -5
templates/terminal.html
CHANGED
@@ -382,11 +382,11 @@
|
|
382 |
|
383 |
// Focus input on load and when clicking anywhere in terminal
|
384 |
input.focus();
|
385 |
-
|
386 |
-
|
387 |
-
|
388 |
-
|
389 |
-
|
390 |
</script>
|
391 |
</body>
|
392 |
</html>
|
|
|
382 |
|
383 |
// Focus input on load and when clicking anywhere in terminal
|
384 |
input.focus();
|
385 |
+
document.addEventListener('click', (e) => {
|
386 |
+
if (!e.target.classList.contains('upload-link')) {
|
387 |
+
input.focus();
|
388 |
+
}
|
389 |
+
});
|
390 |
</script>
|
391 |
</body>
|
392 |
</html>
|