pullrequests Search Results · user:sindresorhus language:swift archived:false is:public language:C language:Python
Filter by
483 results
insindresorhus (press backspace or delete to remove)Makes Shortcut.keyEquivalent public.
Use case: Say I have a menu item for New Post . Users can set a preferred global shortcut, otherwise it uses a
local-only default. I need to set the menu item s keyEquivalent/keyEquivalentModifierMask ...
WHY
- Xcode_16.app is removed by recent stack updates.
WHAT
- Use latest stable Xcode version, 16.2.
- https://github.com/actions/runner-images/blob/main/images/macos/macos-14-Readme.md
WHY
- Failed to compile on Swift@6.1 (Xcode 16.1 Beta 1)
Conflicting arguments to generic parameter R ( Void vs. AsyncStream TaskQueue.AsyncTask .Continuation.YieldResult? )
swift-driver version: ...
Removed the KeyEquivalent extension from iOS builds so they compile.
I noticed that any view using a @Default property wrapper, was getting their body re-evaluated twice when appearing.
This is what the logs look like when showing a simple view that uses @Default when ...
This PR allows option key shortcuts for macOS 15.2 and later.
Adds the following methods for removing only the handlers for specific Names:
/**
Remove all handlers for one or more names. Includes both key down and key up handlers.
*/
public static func removeHandlers(for ...
Evaluating globalKeyboardShortcut(_:) revealed several issues related to special keys:
- Shortcuts using the Key.space would produce a KeyEquivalent that specified the S key. (cause: first being used ...
The isPressed indicator was not changing for shortcuts created with the DynamicShortcutRecorder. This was caused by
registration being done with .onChange(of:_:) - where action is only evaluated with the ...