mirror of
https://github.com/zen-browser/desktop.git
synced 2026-04-05 07:09:30 +00:00
Refactor ZenStartup.mjs and zen-settings.js, and update subproject commit in l10n and zen-components
This commit is contained in:
Submodule src/browser/base/content/zen-components updated: 06bff7da09...b4b3c1f0d4
@@ -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!');
|
||||
|
||||
Reference in New Issue
Block a user