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

László Németh laszlo.nemeth at collabora.com
Wed Oct 28 15:56:25 PDT 2015


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

New commits:
commit 15812c889cdae08ae6bdd77b3c02915d6e1e1ecc
Author: László Németh <laszlo.nemeth at collabora.com>
Date:   Wed Oct 28 23:49:51 2015 +0100

    tdf#94608 add Ctrl-Shift-Left/Right shortcuts for word selection

diff --git a/loleaflet/src/map/handler/Map.Keyboard.js b/loleaflet/src/map/handler/Map.Keyboard.js
index 4b17a6a..46b57f2 100644
--- a/loleaflet/src/map/handler/Map.Keyboard.js
+++ b/loleaflet/src/map/handler/Map.Keyboard.js
@@ -270,6 +270,12 @@ L.Map.Keyboard = L.Handler.extend({
 			// Ctrl + Shift
 			if (!e.originalEvent.altKey) {
 				switch (e.originalEvent.keyCode) {
+					case 37: // left arrow
+						L.Socket.sendMessage('uno .uno:WordLeftSel');
+						break;
+					case 39: // right arrow
+						L.Socket.sendMessage('uno .uno:WordRightSel');
+						break;
 					case 66: // b
 						L.Socket.sendMessage('uno .uno:SubScript');
 						break;


More information about the Libreoffice-commits mailing list