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 PR bumps the KeyboardShortcuts dependency from v1.10.0 to v3.0.1 but does not apply the v3 breaking-change migration to the Swift source, leaving the project in a non-compiling state.

  • Package.swift and Package.resolved are correctly updated to pin v3.0.1.
  • Shortcuts.swift still uses the old default: parameter label on three KeyboardShortcuts.Name initializer calls; v3.0.0 renamed that label to initial:, so the build will fail until those call sites are updated.

Confidence Score: 4/5

Do not merge without updating the three default: parameter labels in Shortcuts.swift to initial: — the project will not compile as-is against KeyboardShortcuts v3.

The package manifest and lock file are correctly updated, but the v3.0.0 breaking rename of the Name initializer's default: label to initial: was not applied to Shortcuts.swift. All three affected call sites will produce a compile error, so the change is not functional until that fix lands alongside this bump.

macos/AgentCLI/Sources/AgentCLI/Shortcuts.swift — three KeyboardShortcuts.Name initializer call sites still use the removed default: parameter label.

Important Files Changed

Filename Overview
macos/AgentCLI/Package.swift Bumps the KeyboardShortcuts pinned version from 1.10.0 to 3.0.1; no other changes.
macos/AgentCLI/Package.resolved Lock file updated to match the new KeyboardShortcuts revision for v3.0.1.

Flowchart

%%{init: {'theme': 'neutral'}}%%
flowchart TD
    A[Package.swift\npins KeyboardShortcuts 3.0.1] --> B[Package.resolved\nupdated revision]
    B --> C{Build Shortcuts.swift}
    C -->|default: label removed in v3| D["❌ Compile Error\n3× KeyboardShortcuts.Name(_, default:)"]
    C -->|after rename to initial:| E["✅ Build succeeds"]
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\npins KeyboardShortcuts 3.0.1] --> B[Package.resolved\nupdated revision]
    B --> C{Build Shortcuts.swift}
    C -->|default: label removed in v3| D["❌ Compile Error\n3× KeyboardShortcuts.Name(_, default:)"]
    C -->|after rename to initial:| E["✅ Build succeeds"]
Loading

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

@renovate renovate Bot force-pushed the renovate/sindresorhus-keyboardshortcuts-3.x branch 2 times, most recently from b579975 to 4231cd8 Compare June 16, 2026 22:51
@renovate renovate Bot force-pushed the renovate/sindresorhus-keyboardshortcuts-3.x branch from 4231cd8 to 9711830 Compare June 17, 2026 14:48
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