From 4be8742ac58194448f9873430a3accb4b80319b2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lorenz=20H=C3=BCbschle-Schneider?= Date: Fri, 4 Jul 2014 14:44:40 +0100 Subject: [PATCH] Focus input bar after pressing the send button This prevents the keyboard from closing on mobile --- js/glowingbear.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/js/glowingbear.js b/js/glowingbear.js index 3bba9b2..b37c8a9 100644 --- a/js/glowingbear.js +++ b/js/glowingbear.js @@ -1312,6 +1312,8 @@ weechat.directive('inputBar', function() { // Empty the input after it's sent $scope.command = ''; } + + $scope.getInputNode().focus(); }; $rootScope.addMention = function(prefix) {