errordomain=nscocoaerrordomain&errormessage=không thể tìm thấy phím tắt được chỉ định.&errorcode=4

Fix “Shortcut Not Found” Error on Mac (Error Code 4)

Have you ever encountered a cryptic error message like “errordomain=nscocoaerrordomain&errormessage=không thể tìm thấy phím tắt được chỉ định.&errorcode=4” on your Mac? This seemingly complex error code might leave you scratching your head, wondering what it means and how to fix it. But fret not, for this comprehensive guide will equip you with the knowledge to troubleshoot and resolve this issue effectively.

Understanding the Error Message

This error message originates from the macOS Cocoa framework, a set of tools used to build applications. The specific components involved are:

  • errordomain=nscocoaerrordomain: This indicates that the error belongs to the Cocoa domain, which is responsible for handling application-level errors within macOS.
  • errormessage=không thể tìm thấy phím tắt được chỉ định.: This translates to “Cannot find the specified shortcut” in Vietnamese. This is the crux of the issue – the system is unable to locate a particular keyboard shortcut that has been triggered.
  • errorcode=4: This code serves as a unique identifier for the specific error within the Cocoa domain.

In simpler terms, the error message signifies that macOS encountered a problem recognizing a keyboard shortcut you attempted to use. This could be due to various reasons, such as:

  • Conflicting Shortcut Assignments: Another application or system function might be assigned the same keyboard shortcut, causing a conflict.
  • Corrupted Application Preferences: Damaged preference files associated with the application you were using can lead to shortcut recognition issues.
  • System-Level Issues: In rare instances, underlying system problems might prevent macOS from correctly interpreting keyboard shortcuts.

Troubleshooting Steps

Free A Businesswoman in a Meeting Stock Photo

Now that you understand the error’s meaning, let’s delve into the troubleshooting steps to resolve it:

  1. Identify Conflicting Shortcuts:

    • Open System Preferences.
    • Navigate to Keyboard.
    • Click on the Shortcuts tab.
    • Explore different categories like App ShortcutsServices, and Mission Control.
    • Look for any shortcuts that might clash with the one you were trying to use. If you find a conflict, consider reassigning one of the shortcuts to avoid future issues.
  2. Reset Application Shortcuts:

    • Some applications allow you to reset their keyboard shortcut settings to defaults. This can often resolve issues caused by corrupted preferences.
    • Consult the application’s documentation or menus for specific instructions on resetting shortcuts.
    • If the application lacks a built-in reset option, proceed to the next step.
  3. Delete Corrupted Application Preferences:

    • Warning: This step involves deleting preference files, which might reset some application settings.
    • Quit the application you were using when the error occurred.
    • Open Finder.
    • Navigate to Library > Preferences.
    • Search for preference files associated with the problematic application. File names typically start with the application name followed by “.plist”.
    • Move the identified preference files to your Desktop.
    • Relaunch the application. macOS will automatically generate new preference files, potentially resolving the shortcut issue.
    • If the issue persists, move the preference files back to their original location and try the next step.
  4. Check for System Updates:

    • Outdated macOS software might contain bugs that can cause various issues, including problems with keyboard shortcuts.
    • Open System Preferences.
    • Click on Software Update.
    • Install any available updates for macOS.
  5. Test in Safe Mode:

    • Safe mode boots macOS with only the essential system components loaded. This helps isolate whether the error stems from a third-party application or a core system issue.
    • Shut down your Mac.
    • During startup, hold down the Shift key until you see the Apple logo.
    • Release the key when the login screen appears.
    • You’ll see “Safe Boot” in the corner of the screen.
    • Try using the problematic keyboard shortcut in Safe Mode.
    • If the error doesn’t occur in Safe Mode, it suggests a conflict with a third-party application. Restart your Mac normally and proceed to the next step.
  1. Identify Conflicting Third-Party Applications:

    • After pinpointing the problematic application, explore these options:
      • Reinstall the Application: A fresh installation can sometimes rectify issues caused by corrupted application files.
      • Update the Application: Developers frequently release updates that address bugs and compatibility issues. Check for available updates within the application or the developer’s website.
      • Search for Alternative Applications: If reinstalling or updating doesn’t resolve the issue, consider using a different application that offers similar functionality.
  2. Reset System Configuration (SMC and NVRAM):

    • The System Management Controller (SMC) and Non-Volatile Random-Access Memory (NVRAM) manage low-level hardware settings on your Mac. Resetting them can potentially fix issues arising from these configurations.
    • Resetting SMC:
      • Shut down your Mac.
      • Connect your MagSafe adapter (or another power adapter for laptops without MagSafe) to your Mac while it’s turned off. (Note: This step is optional for desktops.)
      • Press and hold the Shift + Option + Control keys on the left side of the built-in keyboard, along with the power button on the right side. Hold all four keys for 10 seconds.
      • After 10 seconds, release all the keys simultaneously.
      • Press the power button to turn on your Mac.
    • Resetting NVRAM:
      • Shut down your Mac.
      • Turn on your Mac and immediately press and hold Command + Option + P + R keys together.
      • Hold the keys for about 20 seconds, even after you hear the startup chime for the second time.
      • Release the keys and your Mac will boot up normally.
  3. Create a New User Account:

    • A corrupted user profile can sometimes lead to various system issues, including problems with keyboard shortcuts. Creating a new user account helps diagnose if the error is specific to your current user profile.
    • Open System Preferences.
    • Click on Users & Groups.
    • Click the lock icon in the corner and enter your administrator password when prompted.
    • Click the “+” button to create a new user account.
    • Set the account type (Standard or Administrator) as desired.
    • Log out of your current account and log in to the new one.
    • Try using the problematic keyboard shortcut in the new user account.
    • If the error doesn’t occur in the new account, it suggests a problem with your original user profile. You can migrate your data to the new account or troubleshoot your original profile further.
  4. Reinstall macOS:

    • As a last resort, if none of the previous steps resolve the issue, reinstalling macOS can potentially fix system-level problems that might be causing the error.
    • Back up your important data using Time Machine or another backup method before proceeding.
    • There are two main methods for reinstalling macOS:
      • Internet Recovery: This method downloads and installs the latest macOS version directly from Apple servers. Restart your Mac while holding down Command + Option + R. Follow the on-screen instructions.
      • Bootable Installer: If you have a bootable USB drive with macOS, connect it to your Mac and restart while holding down the Option key. Select the macOS installer from the boot menu and follow the on-screen instructions.

Preventing Future Occurrences

  • Avoid Assigning Conflicting Shortcuts: When customizing keyboard shortcuts in applications, ensure they don’t clash with system-wide shortcuts or shortcuts used by other applications.
  • Keep Software Updated: Regularly update macOS, applications, and third-party software to benefit from bug fixes and compatibility improvements.
  • Maintain a Clean System: Regularly scan for malware and keep your Mac free from clutter to prevent potential software conflicts.


By following these comprehensive troubleshooting steps, you should be well-equipped to resolve the “errordomain=nscocoaerrordomain&errormessage=không thể tìm thấy phím tắt được chỉ định.&errorcode=4” error and regain control of your keyboard shortcuts on your Mac. If you encounter further difficulties, don’t hesitate to consult Apple Support for additional assistance.