[Libreoffice-commits] online.git: loleaflet/src

Andras Timar (via logerrit) logerrit at kemper.freedesktop.org
Thu Jun 25 10:38:21 UTC 2020


 loleaflet/src/control/Control.Menubar.js  |    2 +-
 loleaflet/src/map/handler/Map.Keyboard.js |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

New commits:
commit a5be1c089b0418cb833c93944b92f9c3336c6e92
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Thu Jun 25 12:18:36 2020 +0200
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Jun 25 12:38:01 2020 +0200

    Fix: when help was invoked with F1 %productName was not replaced
    
    Change-Id: I2f0255e0aedbe70116b2fb7423b0d077c14fa7b4
    Reviewed-on: https://gerrit.libreoffice.org/c/online/+/97104
    Tested-by: Jenkins
    Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice at gmail.com>
    Reviewed-by: Andras Timar <andras.timar at collabora.com>

diff --git a/loleaflet/src/control/Control.Menubar.js b/loleaflet/src/control/Control.Menubar.js
index 240dd9c50..39a4e8146 100644
--- a/loleaflet/src/control/Control.Menubar.js
+++ b/loleaflet/src/control/Control.Menubar.js
@@ -1295,7 +1295,7 @@ L.Control.Menubar = L.Control.extend({
 
 		// handle help - F1
 		if (e.type === 'keydown' && !e.shiftKey && !e.ctrlKey && !e.altKey && e.keyCode == 112) {
-			self._map.showHelp();
+			self._map.showHelp('online-help');
 		}
 	},
 
diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index 6ba2dc165..6ea10c40e 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -308,7 +308,7 @@ L.Map.Keyboard = L.Handler.extend({
 
 		// handle help - F1
 		if (ev.type === 'keydown' && !shift && !ctrl && !alt && !cmd && keyCode === 112) {
-			this._map.showHelp();
+			this._map.showHelp('online-help');
 			ev.preventDefault();
 			return;
 		}


More information about the Libreoffice-commits mailing list