diff options
author | Moonchild <mcwerewolf@gmail.com> | 2018-11-03 20:06:59 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-11-03 20:06:59 +0100 |
commit | 0750ec552aca0c4c84e599f6d4dac29c81a676cc (patch) | |
tree | bb53bed1f8b81f9b7e95fc328a3adce358b5de5b | |
parent | 1d55939c7ca0e80555a24b240ff68d5bdbb48b4a (diff) | |
parent | e9a58eae57e65b082b461ec17aaf4bef9bb582f9 (diff) | |
download | UXP-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.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; }; |