Skip to content

⬆️ Update sindresorhus/KeyboardShortcuts to v3#594

Open
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/sindresorhus-keyboardshortcuts-3.x
Open

⬆️ Update sindresorhus/KeyboardShortcuts to v3#594
renovate[bot] wants to merge 1 commit into
mainfrom
renovate/sindresorhus-keyboardshortcuts-3.x

Conversation

@renovate

@renovate renovate Bot commented Jun 14, 2026

Copy link
Copy Markdown
Contributor

This PR contains the following updates:

Package Update Change
sindresorhus/KeyboardShortcuts major 1.10.03.0.1

Release Notes

sindresorhus/KeyboardShortcuts (sindresorhus/KeyboardShortcuts)

v3.0.1

Compare Source

  • Fix release build crash with Swift 6.3 compiler

v3.0.0

Compare Source

Breaking
  • Rename Name#defaultShortcut to Name#initialShortcut
  • Rename Name default: parameter to initial:
Improvements
  • The package now uses Swift 6
  • Add customizable shortcut validation to Recorder
  • Add binding support to Recorder
  • Add repeating key-down events API (repeatingKeyDownEvents(for:))
  • Add hard-coded streaming shortcut API (KeyboardShortcuts.events(for:))
  • Add KeyboardShortcuts.storedNames getter
  • Add Shortcut#toSwiftUI
  • Add Shortcut#isTakenBySystem
Fixes
  • Fix release build crash with the Swift 6.3 compiler
  • Fix NSMenuItem#setShortcut(for:) overriding a hardcoded key equivalent when no global shortcut is set
  • Fix a false menu item conflict when reassigning an existing shortcut

v2.4.0

Compare Source

  • Add NSEvent.ModifierFlags#ks_symbolicRepresentation
  • Add isEnabled() method (#​215)
  • Add removeHandler() method (#​216)
  • Fix RecorderCocoa zero-size issue when added without constraints
  • Fix first responder warning in SwiftUI contexts
  • Fix localization issues
  • Add Italian localization (#​224)

v2.3.0

Compare Source

  • Add Shortcut#nsMenuItemKeyEquivalent property 045cf17
  • Fix compilation of the package in multi-platform projects 2d6b49e

v2.2.4

Compare Source


v2.2.3

Compare Source

  • Fix logic for .globalKeyboardShortcut() 323d9f8

v2.2.2

Compare Source

  • Fix using Control+C keyboard shortcut

v2.2.1

Compare Source

  • Fix recorder not allowing multiple modifiers when option is present on macOS 15
  • Fix zh localizations

v2.2.0

Compare Source

  • Add .resetAll() method

v2.1.0

Compare Source

  • Add SwiftUI.View#globalKeyboardShortcut() method
  • Show a dialog to the user when setting a shortcut with the Option key without Command or Control on macOS 15 or later in sandboxed apps

v2.0.2

Compare Source

  • Improve localizations

v2.0.1

Compare Source

  • Fix missing localization for the “Space” key shortcut

v2.0.0

Compare Source

Breaking
  • Require macOS 10.15 or later 04b8db6
  • Remove deprecated KeyboardShortcuts.on() method 09e4a10
  • The NSMenuItem#setShortcut() method is now marked with @MainActor 3b11952
Improvements
  • Improve support for strict concurrency 3b11952

v1.17.0

Compare Source

  • Add LocalizedStringKey initializer to Recorder to support localizing the title
  • Add Slovak localization

v1.16.1

Compare Source

  • Fix memory leak for NSMenuItem#setShortcut
  • Fix iOS previews for multiplatform apps

v1.16.0

Compare Source

  • Allow overriding system-reserved shortcuts de40257

v1.15.0

Compare Source

  • Add pt-BR localization

v1.14.1

Compare Source

  • Fix shortcut recorder not properly stopping when window gets hidden b878f81
  • Fix initial focus prevention not working when window is unhidden or the parent view goes from hidden to visible b878f81

v1.14.0

Compare Source

  • Use Space to indicate the space key instead of .
    • ⌘⎵ was confusing to users and macOS itself uses ⌘Space in their keyboard shortcut recorders and in menu items.

v1.13.0

Compare Source

  • Improve compatibility with macOS 14

v1.12.0

Compare Source

  • Automatically observe NSMenu's f0d470d
    • This means you no longer need to set KeyboardShortcuts.isMenuOpen, and the property has been made private.
  • Improve compatibility with macOS 14 f0d470d

v1.11.0

Compare Source

  • Support disabling/enabling multiple keyboard shortcuts in a single call 018e445
  • Improve display of keypad keys 746f74e
  • Fix cursor disappearing when switching to other textfield when using RecorderCocoa 921c77e

Note: The tag is now without a v prefix since Xcode cannot handle the prefix.


Configuration

📅 Schedule: (UTC)

  • Branch creation
    • At any time (no schedule defined)
  • Automerge
    • At any time (no schedule defined)

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR was generated by Mend Renovate. View the repository job log.

@greptile-apps

greptile-apps Bot commented Jun 14, 2026

Copy link
Copy Markdown

Greptile Summary

This Renovate-generated PR bumps sindresorhus/KeyboardShortcuts from 1.10.0 to 3.0.1 (a two-major-version jump) but does not update the calling code to match the v3 breaking API change.

  • Package.swift / Package.resolved: Version pin and lockfile revision are updated correctly to 3.0.1.
  • Shortcuts.swift (not in diff, but impacted): Three KeyboardShortcuts.Name definitions still use the removed default: parameter label, which was renamed to initial: in v3.0.0 — the project will not compile as-is.
  • No other v3 breaking changes apply here: the Name#defaultShortcut property rename and the removed KeyboardShortcuts.on() method are not used in this codebase.

Confidence Score: 2/5

Not safe to merge — the project will not compile because Shortcuts.swift still uses the removed default: parameter label that was renamed to initial: in v3.0.0.

The dependency version pin and lockfile are correct, but the three KeyboardShortcuts.Name definitions in Shortcuts.swift pass default: where v3 now requires initial:. Swift treats mismatched argument labels as a compile error, so every build target that imports AgentCLI will fail until those three call sites are updated.

macos/AgentCLI/Sources/AgentCLI/Shortcuts.swift — three KeyboardShortcuts.Name initializer call sites must have default: renamed to initial:.

Important Files Changed

Filename Overview
macos/AgentCLI/Package.swift Bumps KeyboardShortcuts from 1.10.0 to 3.0.1, but the companion source file uses the removed default: parameter label, causing a compile failure.
macos/AgentCLI/Package.resolved Lockfile correctly updated to match the new version pin (revision 49c3fc04ea827f816df67843bfcc57286b47ff06, version 3.0.1).

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Package.swift\nKeyboardShortcuts exact: 3.0.1] --> B[Package.resolved\nrevision 49c3fc04]
    B --> C{Compile\nAgentCLI}
    C -->|Shortcuts.swift uses\ndefault: label| D[❌ Build Failure\nargument label mismatch]
    C -->|After renaming\ndefault: → initial:| E[✅ Build Success]
    style D fill:#ff6b6b,color:#fff
    style E fill:#51cf66,color:#fff
Loading
%%{init: {'theme': 'base', 'themeVariables': {"darkMode": true, "background": "#0d1117", "primaryColor": "#21262d", "primaryTextColor": "#e6edf3", "primaryBorderColor": "#8b949e", "lineColor": "#8b949e", "textColor": "#e6edf3", "edgeLabelBackground": "#161b22", "actorBkg": "#21262d", "actorBorder": "#8b949e", "actorTextColor": "#e6edf3", "actorLineColor": "#8b949e", "signalColor": "#8b949e", "signalTextColor": "#e6edf3", "noteBkgColor": "#373320", "noteBorderColor": "#d4a72c", "noteTextColor": "#f0e6c0", "labelBoxBkgColor": "#21262d", "labelBoxBorderColor": "#8b949e", "labelTextColor": "#e6edf3", "loopTextColor": "#e6edf3", "activationBkgColor": "#30363d", "activationBorderColor": "#8b949e"}}}%%
flowchart TD
    A[Package.swift\nKeyboardShortcuts exact: 3.0.1] --> B[Package.resolved\nrevision 49c3fc04]
    B --> C{Compile\nAgentCLI}
    C -->|Shortcuts.swift uses\ndefault: label| D[❌ Build Failure\nargument label mismatch]
    C -->|After renaming\ndefault: → initial:| E[✅ Build Success]
    style D fill:#ff6b6b,color:#fff
    style E fill:#51cf66,color:#fff
Loading

Reviews (5): Last reviewed commit: "⬆️ Update sindresorhus/KeyboardShortcuts..." | Re-trigger Greptile

@renovate renovate Bot force-pushed the renovate/sindresorhus-keyboardshortcuts-3.x branch 4 times, most recently from 9711830 to 9ee4d8b Compare June 22, 2026 19:10
@renovate renovate Bot force-pushed the renovate/sindresorhus-keyboardshortcuts-3.x branch from 9ee4d8b to e815b1a Compare June 24, 2026 09:13
@renovate renovate Bot force-pushed the renovate/sindresorhus-keyboardshortcuts-3.x branch from e815b1a to 1443911 Compare June 25, 2026 17:08
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants