Fix input focus bugs on mobile

This commit is contained in:
Alan Friedman 2016-01-15 17:14:11 -05:00
parent a5aa18b9ba
commit 70be01cea3

View File

@ -267,11 +267,6 @@ $(function() {
}
});
// Focus input when clicking on the message input's border
$inputMessage.click(function () {
$inputMessage.focus();
});
$genKey.click(function () {
let key = generatePassword();
updateKeyVal(key);
@ -283,7 +278,7 @@ $(function() {
});
// Select message input when clicking message body, unless selecting text
$('.messages').on('mouseup', function() {
$('.messages').on('click', function() {
if (!getSelectedText()) {
$inputMessage.focus();
}