![]() ![]() ![]() ![]() If an extension attempts to register a shortcut that is already used by another extension, the second extension's shortcut will not register as expected. Key combinations that involve Ctrl+Alt are not permitted in order to avoid conflicts with the AltGr key. Media Keys– MediaNextTrack, MediaPlayPause, MediaPrevTrack, MediaStop Modifier key stringsĬtrl, Alt, Shift, MacCtrl (macOS only), Command (macOS only), Search (ChromeOS only) General– Comma, Period, Home, End, PageUp, PageDown, Space, Insert, Delete Attempting to load an extension with an incorrectly cased key will result in a manifest parse error at installation time. The following keys are usable command shortcuts. The user can manually add more shortcuts from the chrome://extensions/shortcuts dialog. ![]() Descriptions are required for standard commands, but are ignored for Action commands.Īn extension can have many commands, but may specify at most four suggested keyboard shortcuts. This string appears in extension keyboard shortcut management UI. descriptionĪ string used to provide the user with a short description of the command's purpose. See Key combination requirements for additional details. When providing platform-specific shortcuts, valid object properties are default, chromeos, linux, mac, and windows. This property can either take a string or an object value.Ī string value specifies the default keyboard shortcut that should be used across all platforms.Īn object value allows the extension developer to customize the keyboard shortcut for each platform. suggested_keyĪn optional property that declares default keyboard shortcuts for the command. The property key is used as the command's name. Each command an extension accepts must be declared as properties of the "commands" object in the extension's manifest. The Commands API allows extension developers to define specific commands, and bind them to a default key combination. You must have a "manifest_version" of at least 2 to use this API. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |