mirror of
https://github.com/darkwire/darkwire.io.git
synced 2025-07-22 20:51:28 +00:00
Autofocus on key input
This commit is contained in:
parent
d79c5ada53
commit
5add27f995
@ -289,6 +289,10 @@ $(function() {
|
|||||||
|
|
||||||
if (data.numUsers > 1) {
|
if (data.numUsers > 1) {
|
||||||
$('#join-modal').modal('show');
|
$('#join-modal').modal('show');
|
||||||
|
$('#join-modal').on('shown.bs.modal', function (e) {
|
||||||
|
$('#join-modal input').focus();
|
||||||
|
});
|
||||||
|
|
||||||
key = '';
|
key = '';
|
||||||
}
|
}
|
||||||
updateKeyVal(key);
|
updateKeyVal(key);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user