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

Henry Castro hcastro at collabora.com
Tue Jun 2 20:53:57 PDT 2015


 loleaflet/src/map/Map.js |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

New commits:
commit 43425c406db4f54d9a2b6e174e0630937d0d6e2d
Author: Henry Castro <hcastro at collabora.com>
Date:   Tue Jun 2 23:49:51 2015 -0400

    The keycode RETURN it is converted to click.
    
    The keypress and keycode = 13 are converted to click event,
    so Calc Application does not receive keypress RETURN, It is needed
    to commit changes into cell.

diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 9076ca0..72a9c49 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -600,7 +600,8 @@ L.Map = L.Evented.extend({
 
 		// find the layer the event is propagating from
 		var target = this._targets[L.stamp(e.target || e.srcElement)],
-			type = e.type === 'keypress' && e.keyCode === 13 ? 'click' : e.type;
+			//type = e.type === 'keypress' && e.keyCode === 13 ? 'click' : e.type;
+			type = e.type;
 
 		// special case for map mouseover/mouseout events so that they're actually mouseenter/mouseleave
 		if (!target && (type === 'mouseover' || type === 'mouseout') &&


More information about the Libreoffice-commits mailing list