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

Andras Timar andras.timar at collabora.com
Sat Nov 28 11:05:27 PST 2015


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

New commits:
commit d49df745061c8fad7a874dcd6cb31fd5ac1794a4
Author: Andras Timar <andras.timar at collabora.com>
Date:   Sat Nov 28 20:04:16 2015 +0100

    loleaflet: update column headers after Set Optimal Column Width command

diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index a58c8a4..2ce5bf9 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -342,6 +342,13 @@ L.Map.Keyboard = L.Handler.extend({
 		}
 
 		switch (e.originalEvent.keyCode) {
+			case 51: // 3
+				if (this._map.getDocType() === 'spreadsheet') {
+					L.Socket.sendMessage('uno .uno:SetOptimalColumnWidthDirect');
+					L.Socket.sendMessage('commandvalues command=.uno:ViewRowColumnHeaders');
+					return true;
+				}
+				return false;
 			case 53: // 5
 				if (this._map.getDocType() === 'spreadsheet') {
 					L.Socket.sendMessage('uno .uno:Strikeout');


More information about the Libreoffice-commits mailing list