[PR #270] [MERGED] Add cmd-q shortcut on macOS #349

Closed
opened 2026-05-05 22:17:22 -06:00 by gitea-mirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/feschber/lan-mouse/pull/270
Author: @mrled
Created: 2/21/2025
Status: Merged
Merged: 2/28/2025
Merged by: @feschber

Base: mainHead: add-macos-cmd-q


📝 Commits (1)

  • 39a0228 Add cmd-q shortcut on macOS

📊 Changes

1 file changed (+32 additions, -1 deletions)

View changed files

📝 lan-mouse-gtk/src/lib.rs (+32 -1)

📄 Description

Wire up the Quit action to the File menu on macOS.

This enables the typical Cmd-Q shortcut for quitting the app, which is a standard on macOS. To do this, I created a global menu, which macOS uses automatically. (Actually, there is always a menu bar on macOS no matter what. This change enables the Quit menu item, which exists but is grayed out otherwise.) The menu doesn't appear on other platforms.

If this is a wrongheaded way to do this, I'd be happy to change it, and not offended if you just need to close.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/feschber/lan-mouse/pull/270 **Author:** [@mrled](https://github.com/mrled) **Created:** 2/21/2025 **Status:** ✅ Merged **Merged:** 2/28/2025 **Merged by:** [@feschber](https://github.com/feschber) **Base:** `main` ← **Head:** `add-macos-cmd-q` --- ### 📝 Commits (1) - [`39a0228`](https://github.com/feschber/lan-mouse/commit/39a0228dac6742ddfcdd6912adcc727ccfb5aa4d) Add cmd-q shortcut on macOS ### 📊 Changes **1 file changed** (+32 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `lan-mouse-gtk/src/lib.rs` (+32 -1) </details> ### 📄 Description Wire up the Quit action to the File menu on macOS. This enables the typical Cmd-Q shortcut for quitting the app, which is a standard on macOS. To do this, I created a global menu, which macOS uses automatically. (Actually, there is always a menu bar on macOS no matter what. This change enables the Quit menu item, which exists but is grayed out otherwise.) The menu doesn't appear on other platforms. If this is a wrongheaded way to do this, I'd be happy to change it, and not offended if you just need to close. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
gitea-mirror 2026-05-05 22:17:22 -06:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/lan-mouse#349
No description provided.