From cf127fd5c2576cc21bd941303bade21417fac348 Mon Sep 17 00:00:00 2001 From: MuK IT GmbH Date: Fri, 29 Mar 2019 20:54:07 +0000 Subject: [PATCH] publish muk_web_theme - 12.0 --- muk_web_theme/__manifest__.py | 2 +- muk_web_theme/static/src/js/chrome/apps.js | 12 +++++------- muk_web_theme/static/src/xml/apps.xml | 2 +- 3 files changed, 7 insertions(+), 9 deletions(-) diff --git a/muk_web_theme/__manifest__.py b/muk_web_theme/__manifest__.py index 20187ae..e6993ee 100644 --- a/muk_web_theme/__manifest__.py +++ b/muk_web_theme/__manifest__.py @@ -19,7 +19,7 @@ { "name": "MuK Backend Theme", "summary": "Odoo Community Backend Theme", - "version": "12.0.1.4.3", + "version": "12.0.1.4.4", "category": "Themes/Backend", "license": "AGPL-3", "author": "MuK IT", diff --git a/muk_web_theme/static/src/js/chrome/apps.js b/muk_web_theme/static/src/js/chrome/apps.js index b7b8a06..978772a 100644 --- a/muk_web_theme/static/src/js/chrome/apps.js +++ b/muk_web_theme/static/src/js/chrome/apps.js @@ -152,10 +152,10 @@ AppsMenu.include({ this._searchMenusSchedule(); return; } - var all = this.$search_results.find(".mk_menu_search_result"), - pre_focused = all.filter(".active") || $(all[0]), - offset = all.index(pre_focused), - key = event.key; + var all = this.$search_results.find(".mk_menu_search_result"); + var key = event.key || String.fromCharCode(event.which); + var pre_focused = all.filter(".active") || $(all[0]); + var offset = all.index(pre_focused); if (key === "Tab") { event.preventDefault(); key = event.shiftKey ? "ArrowUp" : "ArrowDown"; @@ -171,9 +171,7 @@ AppsMenu.include({ offset++; break; default: - if (key.length === 1 || key === "Backspace") { - this._searchMenusSchedule(); - } + this._searchMenusSchedule(); return; } if (offset < 0) { diff --git a/muk_web_theme/static/src/xml/apps.xml b/muk_web_theme/static/src/xml/apps.xml index c0bcdb8..3b55aa5 100644 --- a/muk_web_theme/static/src/xml/apps.xml +++ b/muk_web_theme/static/src/xml/apps.xml @@ -60,7 +60,7 @@