diff --git a/api/js/egw_action/egw_keymanager.js b/api/js/egw_action/egw_keymanager.js index baaf37d280..0583e68635 100644 --- a/api/js/egw_action/egw_keymanager.js +++ b/api/js/egw_action/egw_keymanager.js @@ -28,7 +28,7 @@ import { * egw key constants as listed above. This key codes were chosen to match the * key codes of IE and FF. */ -var egw_keycode_translation_function = function(_nativeKeyCode) { +export var egw_keycode_translation_function = function(_nativeKeyCode) { // Map the numpad to the 0..9 keys if (_nativeKeyCode >= 96 && _nativeKeyCode <= 105) { diff --git a/mail/js/app.js b/mail/js/app.js index 180863081b..b54bceec65 100644 --- a/mail/js/app.js +++ b/mail/js/app.js @@ -17,6 +17,7 @@ import {et2_dialog} from "../../api/js/etemplate/et2_widget_dialog"; import {et2_button} from "../../api/js/etemplate/et2_widget_button"; import {egw_getObjectManager} from '../../api/js/egw_action/egw_action.js'; import {egwIsMobile} from "../../api/js/egw_action/egw_action_common.js"; +import {egw_keycode_translation_function} from "../../api/js/egw_action/egw_keymanager.js"; /* required dependency, commented out because no module, but egw:uses is no longer parsed */