mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-27 01:27:30 +09:00
[PALEMOON] Focus and select the first non-collapsed text element in the bookmark properties dialog
This commit is contained in:
parent
031102b1ca
commit
7da6d82c53
1 changed files with 5 additions and 0 deletions
|
|
@ -222,6 +222,11 @@ var gEditItemOverlay = {
|
||||||
}
|
}
|
||||||
|
|
||||||
let focusElement = () => {
|
let focusElement = () => {
|
||||||
|
let elt = document.querySelector("textbox:not([collapsed=true])");
|
||||||
|
if (elt) {
|
||||||
|
elt.focus();
|
||||||
|
elt.select();
|
||||||
|
}
|
||||||
this._initialized = true;
|
this._initialized = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue