Bug fix: only execute on enter key

This commit is contained in:
Mathew Fleisch
2017-03-26 14:14:35 -07:00
parent 92efc2e097
commit f7c7c55f26

View File

@@ -149,7 +149,7 @@ $(document).ready(function() {
$(document).on('keyup', '#console-input', function(e) { $(document).on('keyup', '#console-input', function(e) {
var code = e.which; var code = e.which;
e.preventDefault(); e.preventDefault();
if(code==32||code==13||code==188||code==186){ if(code==13){
$('#console-execute').click(); $('#console-execute').click();
} }