mirror of
https://github.com/feschber/lan-mouse.git
synced 2026-05-15 14:15:52 -06:00
[PR #270] [MERGED] Add cmd-q shortcut on macOS #349
Labels
No labels
Xorg
documentation
enhancement
macos
pull-request
question
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/lan-mouse#349
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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:
main← Head:add-macos-cmd-q📝 Commits (1)
39a0228Add 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.