diff options
author | JustOff <Off.Just.Off@gmail.com> | 2018-11-03 18:18:25 +0200 |
---|---|---|
committer | JustOff <Off.Just.Off@gmail.com> | 2018-11-03 18:18:25 +0200 |
commit | e9a58eae57e65b082b461ec17aaf4bef9bb582f9 (patch) | |
tree | bb53bed1f8b81f9b7e95fc328a3adce358b5de5b /application/palemoon | |
parent | 1d55939c7ca0e80555a24b240ff68d5bdbb48b4a (diff) | |
download | UXP-e9a58eae57e65b082b461ec17aaf4bef9bb582f9.tar UXP-e9a58eae57e65b082b461ec17aaf4bef9bb582f9.tar.gz UXP-e9a58eae57e65b082b461ec17aaf4bef9bb582f9.tar.lz UXP-e9a58eae57e65b082b461ec17aaf4bef9bb582f9.tar.xz UXP-e9a58eae57e65b082b461ec17aaf4bef9bb582f9.zip |
[PALEMOON] Focus and select the first non-collapsed text element in the bookmark properties dialog
Diffstat (limited to 'application/palemoon')
-rw-r--r-- | application/palemoon/components/places/content/editBookmarkOverlay.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/application/palemoon/components/places/content/editBookmarkOverlay.js b/application/palemoon/components/places/content/editBookmarkOverlay.js index 69d7d32eb..e3d4537c7 100644 --- a/application/palemoon/components/places/content/editBookmarkOverlay.js +++ b/application/palemoon/components/places/content/editBookmarkOverlay.js @@ -222,6 +222,11 @@ var gEditItemOverlay = { } let focusElement = () => { + let elt = document.querySelector("textbox:not([collapsed=true])"); + if (elt) { + elt.focus(); + elt.select(); + } this._initialized = true; }; |