Remove autofocus since it is very mobile unfriendly

with-route-provider
Tor Hveem 12 years ago
parent 928cd034e7
commit 0bd443715a
  1. 2
      directives/input.html
  2. 2
      js/websockets.js

@ -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>

@ -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

Loading…
Cancel
Save