Focus input bar on buffer change. Fixes #15

This commit is contained in:
David Cormier 2013-10-11 19:50:27 -04:00
parent 48ff9ba501
commit f8bb1f4b78
1 changed files with 2 additions and 0 deletions

View File

@ -428,6 +428,8 @@ weechat.controller('WeechatCtrl', ['$rootScope', '$scope', '$store', '$timeout',
models.setActiveBuffer(key);
var ab = models.getActiveBuffer();
$rootScope.pageTitle = ab.shortName + ' | ' + ab.title;
document.getElementById('sendMessage').focus();
};
$scope.$watch('models.getActiveBuffer()', function(newVal, oldVal) {