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

View file

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