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

@ -1,5 +1,5 @@
$(document).ready(function() {
var git_repo = 'https://github.com/hak5/bashbunny-payloads.git';
var git_log = '/var/log/git.log';
var quick_commands = [
@ -149,7 +149,7 @@ $(document).ready(function() {
$(document).on('keyup', '#console-input', function(e) {
var code = e.which;
e.preventDefault();
if(code==32||code==13||code==188||code==186){
if(code==13){
$('#console-execute').click();
}