From 081c14176004a456f6917396e8c41358dedbef9d Mon Sep 17 00:00:00 2001 From: Ailin Nemui Date: Sat, 20 Sep 2014 06:02:12 +0200 Subject: [PATCH] apply-exception in inputbar/bufferFilter.focus --- js/inputbar.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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; }