Use events to fix mobile keyboard to not cover the input element

fix-mobilekeyboard
Tor Hveem 10 years ago
parent 7be9dab1e8
commit 5717e75bf0
  1. 9
      js/glowingbear.js

@ -753,4 +753,13 @@ weechat.config(['$routeProvider',
} }
]); ]);
/* To make chrome mobile display the input element we hook events here */
var input = document.getElementById('sendMessage');
input.addEventListener('focus', function() {
window.location.hash = 'sendMessage';
});
input.addEventListener('blur', function() {
window.location.hash = '';
});
})(); })();

Loading…
Cancel
Save