[Libreoffice-commits] online.git: loleaflet/dist
Michael Meeks
michael.meeks at collabora.com
Mon Oct 2 20:00:27 UTC 2017
loleaflet/dist/toolbar/toolbar.js | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 1c164427ba4d0f2c0017ac481cb91af50dd34bdc
Author: Michael Meeks <michael.meeks at collabora.com>
Date: Mon Oct 2 20:52:09 2017 +0100
Pre-select search text if present on a new ctrl-f.
Change-Id: Idec7c3e3a419bb26f951872932c8c2c7de69b68f
diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index b66b76db..1c7b86e5 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1610,7 +1610,9 @@ map.on('updatepermission', function (e) {
map.on('keydown', function (e) {
if (e.originalEvent.ctrlKey && !e.originalEvent.altKey &&
(e.originalEvent.key === 'f' || e.originalEvent.key === 'F')) {
- L.DomUtil.get('search-input').focus();
+ var entry = L.DomUtil.get('search-input');
+ entry.focus();
+ entry.select();
e.originalEvent.preventDefault();
}
});
More information about the Libreoffice-commits
mailing list