From ab5f2a2d67b4b9c59e0d6c7a004caa79c53e2eaa Mon Sep 17 00:00:00 2001 From: Lucas Nogueira Date: Tue, 18 Apr 2023 14:49:26 -0300 Subject: [PATCH] fix docs --- plugins/global-shortcut/guest-js/index.ts | 2 +- plugins/global-shortcut/src/lib.rs | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) 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,