We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 568d27b commit 558ec6eCopy full SHA for 558ec6e
Sources/KeyboardShortcuts/KeyboardShortcuts.swift
@@ -183,10 +183,12 @@ public enum KeyboardShortcuts {
183
184
/**
185
Remove the keyboard shortcut handler for the given name.
186
-
+
187
This can be used to reset the handler before re-creating it to avoid having multiple handlers for the same shortcut.
188
189
- Parameter name: The name of the keyboard shortcut to remove handlers for.
190
191
+ - Note: This method does not affect listeners using `.on()`.
192
*/
193
public static func removeHandler(for name: Name) {
194
legacyKeyDownHandlers[name] = nil
0 commit comments