constructor (commandManager, appEnvironment) {
    const { userDataPath } = appEnvironment.paths
    this.configPath = path.join(userDataPath, 'keybindings.json')
    this.commandManager = commandManager

    this.userKeybindings = new Map()
    this.keys = this.getDefaultKeybindings()
    this._prepareKeyMapper()

    if (appEnvironment.isDevMode) {
      for (const [id, accelerator] of this.keys) {
        if (!commandManager.has(id)) {
          console.error(`[DEBUG] Command with id="${id}" isn't available for accelerator="${accelerator}".`)
        }
      }
    }

    // Load user-defined keybindings
    this._loadLocalKeybindings()
  }
@param {CommandManager} commandManager The command manager instance.
@param {AppEnvironment} appEnvironment The application environment instance.