[Libreoffice-commits] online.git: Branch 'distro/collabora/milestone-7' - loleaflet/src

Andras Timar andras.timar at collabora.com
Mon Jan 25 01:35:13 PST 2016


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

New commits:
commit ea92ee39257c3a37eb76d58e460ddfeb38fba142
Author: Andras Timar <andras.timar at collabora.com>
Date:   Mon Jan 25 10:34:40 2016 +0100

    loleaflet: focus to hidden input field when user presses Cmd (Meta)

diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index e765bcf..8c10cef 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -378,6 +378,8 @@ L.Map.Keyboard = L.Handler.extend({
 			case 88: // x
 			case 99: // c (Safari)
 			case 120: // x (Safari)
+			case 91: // Left Cmd (Safari)
+			case 93: // Right Cmd (Safari)
 				// we prepare for a copy or cut event
 				this._map._docLayer._textArea.value = 'dummy text';
 				this._map._docLayer._textArea.focus();


More information about the Libreoffice-commits mailing list