[Libreoffice-commits] online.git: Branch 'distro/collabora/collabora-online-2-1' - loleaflet/dist

Michael Meeks michael.meeks at collabora.com
Tue Oct 3 08:27:30 UTC 2017


 loleaflet/dist/toolbar/toolbar.js |    4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

New commits:
commit 747350d34a0cd70d85e18ee8abb1df93a50eeaf3
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
    Reviewed-on: https://gerrit.libreoffice.org/43055
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/loleaflet/dist/toolbar/toolbar.js b/loleaflet/dist/toolbar/toolbar.js
index e540f608..0cd61a09 100644
--- a/loleaflet/dist/toolbar/toolbar.js
+++ b/loleaflet/dist/toolbar/toolbar.js
@@ -1571,7 +1571,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