autoselect

This commit is contained in:
Evert Prants 2021-02-14 09:56:14 +02:00
parent b0ed4f0e7a
commit ffaf00a130
Signed by: evert
GPG Key ID: 1688DA83D222D0B5
1 changed files with 5 additions and 0 deletions

View File

@ -72,6 +72,11 @@ function dashboard () {
})
$('#keybox').val('A'.repeat(36))
$('#keybox').on('click', function (e) {
$(this)[0].select()
$(this)[0].setSelectionRange(0, key.length)
})
$('#show_key').on('click', function (e) {
if (shown) {
$('#keybox').val('A'.repeat(36))