Skip to content

Commit 558ec6e

Browse files
authored
Update documentation in KeyboardShortcuts.swift
1 parent 568d27b commit 558ec6e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

Sources/KeyboardShortcuts/KeyboardShortcuts.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,10 +183,12 @@ public enum KeyboardShortcuts {
183183

184184
/**
185185
Remove the keyboard shortcut handler for the given name.
186-
186+
187187
This can be used to reset the handler before re-creating it to avoid having multiple handlers for the same shortcut.
188-
188+
189189
- Parameter name: The name of the keyboard shortcut to remove handlers for.
190+
191+
- Note: This method does not affect listeners using `.on()`.
190192
*/
191193
public static func removeHandler(for name: Name) {
192194
legacyKeyDownHandlers[name] = nil

0 commit comments

Comments
 (0)