diff --git a/js/inputbar.js b/js/inputbar.js index f5d19c7..5c82fca 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -243,7 +243,9 @@ weechat.directive('inputBar', function() { if (!$scope.$parent.isSidebarVisible()) { $scope.$parent.showSidebar(); } - document.getElementById('bufferFilter').focus(); + setTimeout(function() { + document.getElementById('bufferFilter').focus(); + }); return true; }