Focus input bar on buffer change. Fixes #15
This commit is contained in:
parent
48ff9ba501
commit
f8bb1f4b78
1 changed files with 2 additions and 0 deletions
|
@ -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) {
|
||||
|
|
Loading…
Reference in a new issue