diff --git a/plugins/global-shortcut/guest-js/index.ts b/plugins/global-shortcut/guest-js/index.ts index fe436dde..4d4966c3 100644 --- a/plugins/global-shortcut/guest-js/index.ts +++ b/plugins/global-shortcut/guest-js/index.ts @@ -86,7 +86,7 @@ async function registerAll( * const isRegistered = await isRegistered('CommandOrControl+P'); * ``` * - * @param shortcut Array of shortcut definitions, modifiers and key separated by "+" e.g. CmdOrControl+Q + * @param shortcut shortcut definition, modifiers and key separated by "+" e.g. CmdOrControl+Q * * @since 1.0.0 */ diff --git a/plugins/global-shortcut/src/lib.rs b/plugins/global-shortcut/src/lib.rs index f4b98ffe..7c34fc21 100644 --- a/plugins/global-shortcut/src/lib.rs +++ b/plugins/global-shortcut/src/lib.rs @@ -153,6 +153,9 @@ impl GlobalShortcut { .map_err(Into::into) } + /// Determines whether the given shortcut is registered by this application or not. + /// + /// If the shortcut is registered by another application, it will still return `false`. pub fn is_registered>(&self, shortcut: S) -> bool where S::Error: std::error::Error,