mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-19 02:59: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 () {
|
||||
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();
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user