Auto focus

parent a18d1641
......@@ -120,4 +120,8 @@ Template.livechatWindow.onCreated(function() {
Livechat.ready();
}
});
$(window).on('focus', () => {
$('textarea').focus();
});
});
......@@ -29,6 +29,7 @@
widget.dataset.state = 'opened';
widget.style.height = '300px';
callHook('widgetOpened');
document.querySelector('.rocketchat-widget iframe').focus();
};
var api = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment