Skip to content

Commit 1b0edfb

Browse files
committed
click anywhere to focus command input
1 parent 7b53497 commit 1b0edfb

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

app/assets/javascripts/console.js

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,11 @@ var runScriptButton = $('#run-script');
1515
var script = $('#script');
1616
script[0].focus();
1717

18+
$('html').on('click', function() {
19+
console.log("AAAAAAAAAAAAAAAAAAA")
20+
script[0].focus();
21+
});
22+
1823
runScriptButton.on('click', runScript);
1924
script.on('keydown', onKeyDown);
2025

0 commit comments

Comments
 (0)