code: function _showErrorsAndOpenKeyMap(err, message) {
          // Asynchronously loading Dialogs module to avoid the circular dependency
          require(["widgets/Dialogs"], function (Dialogs) {
              var errorMessage = Strings.ERROR_KEYMAP_CORRUPT;
  
              if (err === FileSystemError.UNSUPPORTED_ENCODING) {
                  errorMessage = Strings.ERROR_LOADING_KEYMAP;
              } else if (message) {
                  errorMessage = message;
              }
  
              Dialogs.showModalDialog(
                  DefaultDialogs.DIALOG_ID_ERROR,
                  Strings.ERROR_KEYMAP_TITLE,
                  errorMessage
              )
                  .done(function () {
                      if (err !== FileSystemError.UNSUPPORTED_ENCODING) {
                          CommandManager.execute(Commands.FILE_OPEN_KEYMAP);
                      }
                  });
          });
      }
docs: @private
  Displays an error dialog and also opens the user key map file for editing only if
  the error is not the loading file error.
  
  @param {?string} err Error type returned from JSON parser or open file operation
  @param {string=} message Error message to be displayed in the dialog