mirror of
https://github.com/onionshare/onionshare.git
synced 2025-01-13 00:09:38 -05:00
Makes username input blur on pressing enter
This commit is contained in:
parent
d1cada0f7e
commit
e7de93cd84
@ -50,7 +50,8 @@ $(function () {
|
||||
// Keep buttons disabled unless changed or not empty
|
||||
$('#username').on('keyup', function (event) {
|
||||
if ($('#username').val() !== '' && $('#username').val() !== current_username) {
|
||||
if (event.keyCode == 13) {
|
||||
if (event.keyCode == 13 || event.which == 13) {
|
||||
this.blur();
|
||||
current_username = updateUsername(socket) || current_username;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user