Focus the message input on window focus

pull/2652/merge
Rodrigo Nascimento 9 years ago
parent 24ab931cca
commit 260490b166
  1. 6
      packages/rocketchat-ui-master/master/main.coffee

@ -235,3 +235,9 @@ Template.main.onRendered ->
$('html').removeClass "rtl"
$('.page-loading').remove()
window.addEventListener 'focus', ->
Meteor.setTimeout ->
if not $(':focus').is('INPUT,TEXTAREA')
$('.input-message').focus()
, 100

Loading…
Cancel
Save