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

Andras Timar (via logerrit) logerrit at kemper.freedesktop.org
Thu Nov 7 22:18:25 UTC 2019


 loleaflet/src/map/handler/Map.Keyboard.js |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 617886d09c04e5df1b3861e65232e5f34dedb3b2
Author:     Andras Timar <andras.timar at collabora.com>
AuthorDate: Thu Nov 7 23:11:14 2019 +0100
Commit:     Andras Timar <andras.timar at collabora.com>
CommitDate: Thu Nov 7 23:13:52 2019 +0100

    Ctrl+K should show the new JS hyperlink dialog
    
    Change-Id: If8f210870af9fc4b1d8955ccd1380593ec322611

diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index f89e5e032..346c2147b 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -419,6 +419,12 @@ L.Map.Keyboard = L.Handler.extend({
 			return true;
 		}
 
+		if (e.ctrlKey && (e.key === 'k' || e.key === 'K')) {
+			this._map.showHyperlinkDialog();
+			e.preventDefault();
+			return true;
+		}
+
 		if (e.ctrlKey && (e.key === 'z' || e.key === 'Z')) {
 			this._map._socket.sendMessage('uno .uno:Undo');
 			e.preventDefault();


More information about the Libreoffice-commits mailing list