Refactor ZenStartup.mjs and zen-settings.js, and update subproject commit in l10n and zen-components

This commit is contained in:
mauro-balades
2024-09-22 22:39:54 +02:00
parent 5ee55ba672
commit 52d5a389bf
2 changed files with 5 additions and 5 deletions

View File

@@ -638,20 +638,20 @@ const ZEN_CKS_GROUP_PREFIX = `${ZEN_CKS_CLASS_BASE}-group`;
const KEYBIND_ATTRIBUTE_KEY = 'key';
var gZenCKSSettings = {
init() {
async init() {
this._currentAction = null;
this._initializeEvents();
this._initializeCKS();
await this._initializeCKS();
},
_initializeEvents() {
window.addEventListener('keydown', this._handleKeyDown.bind(this));
},
_initializeCKS() {
async _initializeCKS() {
let wrapper = document.getElementById(ZEN_CKS_WRAPPER_ID);
let shortcuts = gZenKeyboardShortcutsManager.getModifiableShortcuts();
let shortcuts = await gZenKeyboardShortcutsManager.getModifiableShortcuts();
if (!shortcuts) {
throw Error('No shortcuts defined!');