From 56b91ccdc0bec338588877d2e7ff6829a9e023d9 Mon Sep 17 00:00:00 2001 From: Romeo Fragomeli Date: Thu, 17 Oct 2019 13:57:42 +0000 Subject: [PATCH] [FIX] web: virtual keyboard is always showing during navigation Before this commit, the search bar auto focus was already disable on mobile based on media queries. But "isMobile" equals false since we force the desktop mode. To fix this, we use isMobileDevice which doesn't depend on the resolution. Task ID: 2090202 --- .../static/src/js/views/control_panel/control_panel_renderer.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/views/control_panel/control_panel_renderer.js b/addons/web/static/src/js/views/control_panel/control_panel_renderer.js index bdde2827e96..12d120b53ab 100644 --- a/addons/web/static/src/js/views/control_panel/control_panel_renderer.js +++ b/addons/web/static/src/js/views/control_panel/control_panel_renderer.js @@ -185,7 +185,7 @@ var ControlPanelRenderer = Renderer.extend({ * @private */ _focusSearchInput: function () { - if (this.withSearchBar && !config.device.isMobile) { + if (this.withSearchBar && !config.device.isMobileDevice) { // in mobile mode, we would rather not focus manually the // input, because it opens up the integrated keyboard, which is // not what you expect when you just selected a filter.