summaryrefslogtreecommitdiffstats
path: root/application/palemoon/components/places/content
diff options
context:
space:
mode:
authorJustOff <Off.Just.Off@gmail.com>2018-11-03 18:18:25 +0200
committerJustOff <Off.Just.Off@gmail.com>2018-11-03 18:18:25 +0200
commite9a58eae57e65b082b461ec17aaf4bef9bb582f9 (patch)
treebb53bed1f8b81f9b7e95fc328a3adce358b5de5b /application/palemoon/components/places/content
parent1d55939c7ca0e80555a24b240ff68d5bdbb48b4a (diff)
downloadUXP-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/components/places/content')
-rw-r--r--application/palemoon/components/places/content/editBookmarkOverlay.js5
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;
};