From 8989695af63a56c33aab1448f59a7344544dcb42 Mon Sep 17 00:00:00 2001 From: Alice Jenkinson Date: Sat, 18 Mar 2017 03:31:18 +1300 Subject: [PATCH] Re-focus the input bar after nick completion button is pressed --- js/inputbar.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/inputbar.js b/js/inputbar.js index ef8e0c3..17ef481 100644 --- a/js/inputbar.js +++ b/js/inputbar.js @@ -505,6 +505,11 @@ weechat.directive('inputBar', function() { $scope.handleCompleteNickButton = function($event) { $event.preventDefault(); $scope.completeNick(); + + setTimeout(function() { + $scope.getInputNode().focus(); + }, 0); + return true; }; }]