[Libreoffice-commits] online.git: loleaflet/src
Pranav Kant
pranavk at collabora.co.uk
Fri Nov 25 11:27:41 UTC 2016
loleaflet/src/map/Map.js | 8 ++++++++
1 file changed, 8 insertions(+)
New commits:
commit d0929fb2f6cfbdaf1cc2ca1df16518f186dceab2
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Fri Nov 25 16:55:26 2016 +0530
loleaflet: Popup keyboard on mobile devices
Change-Id: I4f0d1928633f5f0be4148fffd2c68c7aad1a0508
diff --git a/loleaflet/src/map/Map.js b/loleaflet/src/map/Map.js
index 40961cb..aaa04ac 100644
--- a/loleaflet/src/map/Map.js
+++ b/loleaflet/src/map/Map.js
@@ -894,6 +894,14 @@ L.Map = L.Evented.extend({
//type = e.type === 'keypress' && e.keyCode === 13 ? 'click' : e.type;
type = e.type;
+ // For touch devices, to pop-up the keyboard, it is required to call
+ // .focus() method on hidden input within actual 'click' event here
+ // Calling from some other place with no real 'click' event doesn't work
+ if (type === 'click') {
+ this._textArea.blur();
+ this._textArea.focus();
+ }
+
// we need to keep track if we have entered/left the map
this._mouseEnteringLeaving = false;
// mouse leaving the map ?
More information about the Libreoffice-commits
mailing list