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

László Németh laszlo.nemeth at collabora.com
Thu Nov 5 10:06:06 PST 2015


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

New commits:
commit 26fa6adff748935670390da9f7671faa38010259
Author: László Németh <laszlo.nemeth at collabora.com>
Date:   Thu Nov 5 19:02:13 2015 +0100

    loleaflet: revert the removed Ctrl-5 for Calc strikethrough text

diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index 9ac81de..3d1f846 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -341,6 +341,12 @@ L.Map.Keyboard = L.Handler.extend({
 		}
 
 		switch (e.originalEvent.keyCode) {
+			case 53: // 5
+				if (this._map.getDocType() === 'spreadsheet') {
+					L.Socket.sendMessage('uno .uno:Strikeout');
+					return true;
+				}
+				return false;
 			case 67: // c
 				// we prepare for a copy event
 				this._map._docLayer._textArea.value = 'dummy text';


More information about the Libreoffice-commits mailing list