Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

unfocus console

  • Loading branch information...
commit 768e1c16f2af4dc8a72ea2bd3553a5470540776a 1 parent 6f2068d
Thomas Schmidt digitaltom authored
Showing with 4 additions and 2 deletions.
  1. +4 −2 js/hackweek.js
6 js/hackweek.js
View
@@ -41,7 +41,7 @@ $(function () {
})
$(document).keydown(function(e){
- if (e.keyCode == 0 || e.keyCode == 94 || e.keyCode == 176) {
+ if (e.keyCode == 0 || e.keyCode == 94 || e.keyCode == 176 || e.keyCode == 160) {
toggle_terminal()
}
})
@@ -50,10 +50,12 @@ $(function () {
function toggle_terminal() {
if ($('#terminal').is(":visible")) {
$('#terminal').slideUp('fast');
+ $('#wterm').find('div:last form input').blur()
} else {
$('#terminal').slideDown('fast');
+ $('#wterm').find('div:last form input').focus()
}
- $('#wterm').find('div:last form input').focus()
+
}
$(window).scroll(function () {
Please sign in to comment.
Something went wrong with that request. Please try again.