Remove autofocus since it is very mobile unfriendly

This commit is contained in:
Tor Hveem 2013-12-14 19:51:34 +01:00
parent 928cd034e7
commit 0bd443715a
2 changed files with 3 additions and 1 deletions

View file

@ -1,6 +1,6 @@
<form class="form form-horizontal" ng-submit="sendMessage()"> <form class="form form-horizontal" ng-submit="sendMessage()">
<div class="input-group"> <div class="input-group">
<input id="sendMessage" type="text" class="form-control monospace" autocomplete="off" ng-model="command" autofocus> <input id="sendMessage" type="text" class="form-control monospace" autocomplete="off" ng-model="command">
<span class="input-group-btn"> <span class="input-group-btn">
<button class="btn btn-default btn-primary">Send</button> <button class="btn btn-default btn-primary">Send</button>
</span> </span>

View file

@ -751,9 +751,11 @@ weechat.directive('inputBar', function() {
models) { models) {
// Focuses itself when active buffer is changed // Focuses itself when active buffer is changed
/*
$rootScope.$on('activeBufferChanged', function() { $rootScope.$on('activeBufferChanged', function() {
angular.element('#sendMessage').focus(); angular.element('#sendMessage').focus();
}); });
*/
$scope.completeNick = function() { $scope.completeNick = function() {
// input DOM node // input DOM node