I'm opening a Bootstrap modal with a jquery terminal inside by using a Mousetrap shortkey. Now i want to focus the terminal after opening the modal by shortcut, but it does not work. I tried to focus the id around and also some of the terminal classes. In Firefox console it did worked with .clipboard, but in javascript/jquery not.
$(document).ready(function() {
Mousetrap.bind('ctrl+c', function(e) {
$('.modal-content').css('background-color', '#000000');
$('#console').modal('show');
$('#console').focus();
});
});
Thank you!