summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMoonchild <mcwerewolf@gmail.com>2018-11-03 20:06:59 +0100
committerGitHub <noreply@github.com>2018-11-03 20:06:59 +0100
commit0750ec552aca0c4c84e599f6d4dac29c81a676cc (patch)
treebb53bed1f8b81f9b7e95fc328a3adce358b5de5b
parent1d55939c7ca0e80555a24b240ff68d5bdbb48b4a (diff)
parente9a58eae57e65b082b461ec17aaf4bef9bb582f9 (diff)
downloadUXP-0750ec552aca0c4c84e599f6d4dac29c81a676cc.tar
UXP-0750ec552aca0c4c84e599f6d4dac29c81a676cc.tar.gz
UXP-0750ec552aca0c4c84e599f6d4dac29c81a676cc.tar.lz
UXP-0750ec552aca0c4c84e599f6d4dac29c81a676cc.tar.xz
UXP-0750ec552aca0c4c84e599f6d4dac29c81a676cc.zip
Merge pull request #862 from JustOff/PR_editBookmarkOverlay_focus
[PALEMOON] Focus and select the first non-collapsed text element in the bookmark properties dialog
-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;
};