diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2020-03-24 18:30:06 -0400 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2020-03-26 17:58:16 +0100 |
commit | 5dcc1e42d0a4433bcdbb8fe913d368ce8c2ed527 (patch) | |
tree | 6db43c45a814fb2bd3adff178b631d4ee9355543 | |
parent | 1204099c6ed37de7cfe44dbc73cd372bc2b14c8f (diff) |
leaflet: allow keyboard with Calc MobileWizard
This is to facilitate searching for a formula,
which is shown as a list via the Mobile Wizard.
Change-Id: If4ae2dfbce1c9cf153354d1c3a2ff7a8f4af3ea2
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91020
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Reviewed-on: https://gerrit.libreoffice.org/c/online/+/91132
Tested-by: Andras Timar <andras.timar@collabora.com>
-rw-r--r-- | loleaflet/src/control/Control.MobileWizard.js | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/loleaflet/src/control/Control.MobileWizard.js b/loleaflet/src/control/Control.MobileWizard.js index e18b8ccdf..1f10b1a60 100644 --- a/loleaflet/src/control/Control.MobileWizard.js +++ b/loleaflet/src/control/Control.MobileWizard.js @@ -317,7 +317,12 @@ L.Control.MobileWizard = L.Control.extend({ else mWizardContentLength = data.children[0].children.length; this._showWizard(mWizardContentLength); - this._hideKeyboard(); + if (!this._map._docLayer.isCalc()) { + // In Calc, the wizard is used for the formulas, + // and it's easier to allow the user to search + // for a formula by typing the first few characters. + this._hideKeyboard(); + } // Morph the sidebar into something prettier if (isSidebar) |