mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-21 20:36:57 +00:00
Fix input focus bugs on mobile
This commit is contained in:
parent
a5aa18b9ba
commit
70be01cea3
@ -267,11 +267,6 @@ $(function() {
|
|||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
// Focus input when clicking on the message input's border
|
|
||||||
$inputMessage.click(function () {
|
|
||||||
$inputMessage.focus();
|
|
||||||
});
|
|
||||||
|
|
||||||
$genKey.click(function () {
|
$genKey.click(function () {
|
||||||
let key = generatePassword();
|
let key = generatePassword();
|
||||||
updateKeyVal(key);
|
updateKeyVal(key);
|
||||||
@ -283,7 +278,7 @@ $(function() {
|
|||||||
});
|
});
|
||||||
|
|
||||||
// Select message input when clicking message body, unless selecting text
|
// Select message input when clicking message body, unless selecting text
|
||||||
$('.messages').on('mouseup', function() {
|
$('.messages').on('click', function() {
|
||||||
if (!getSelectedText()) {
|
if (!getSelectedText()) {
|
||||||
$inputMessage.focus();
|
$inputMessage.focus();
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user