Skip to content

Copy and paste shortcuts do nothing in Settings text fields #258

Closed

Description

@M4n0x

What happens

⌘V, ⌘C, ⌘X and ⌘A do nothing in Settings text fields. For example, a token can't be pasted into Settings → Packages → Sources… → Add source…; ⌘V fails in its Index URL and Name fields too. Right-click → Paste works.

Steps to reproduce

  1. Copy any text.
  2. Open Settings → Packages → Sources… → Add source….
  3. Click the Token field (or Index URL) and press ⌘V.

Expected

The text is pasted, as with right-click → Paste. ⌘C, ⌘X and ⌘A work too.

Environment

  • StableBar 0.6.0-beta.20261023070947.322
  • macOS 26.6.2

Evidence

The reporter confirmed that ⌘V fails in the Token, Index URL and Name fields, and that right-click → Paste fills the Token field. So the fields accept a paste; only the shortcut is lost.

Diagnosis

StableBarApp.swift runs the app with setActivationPolicy(.accessory), and nothing sets NSApp.mainMenu. AppKit maps ⌘X, ⌘C, ⌘V and ⌘A to cut:, copy:, paste: and selectAll: through the main menu's key equivalents; a text field doesn't handle them itself. With no main menu, the key event finds no handler. An accessory app never shows its main menu, but AppKit still uses that menu's key equivalents, so a hidden Edit menu with these items would bring the shortcuts back.

The only ⌘ shortcuts Settings defines are ⌘Z and ⇧⌘Z on the Undo and Redo buttons in CustomizationWindow.swift, so these four don't clash.

Related

Triaged by Claude Code (Claude Opus 5.5).

Activity

  1. added
    bug
    on Oct 23, 2026
  2. stablebar-releases commented on Oct 23, 2026

    @stablebar-releases

    🎉 This issue has been resolved in version 0.7.0 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugreleased

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions