Add schmoggle for auto select input

This commit is contained in:
Wolfsblvt
2024-08-18 03:38:07 +02:00
parent 321f0500e0
commit 484d2b59ac
3 changed files with 13 additions and 0 deletions

View File

@ -10658,6 +10658,7 @@ jQuery(async function () {
/* $('#set_character_world').on('click', openCharacterWorldPopup); */
$(document).on('focus', 'input.auto-select, textarea.auto-select', function () {
if (!power_user.enable_auto_select_input) return;
const control = $(this)[0];
if (control instanceof HTMLInputElement || control instanceof HTMLTextAreaElement) {
control.select();