Logo
Explore Help
Register Sign In
antior/magpie
Watch 1
Star 0
Fork 0
Code Issues Pull Requests Actions Packages Projects Releases Wiki Activity
Files
88b4c00ea11c8653cada22e11edf20ab1594de43
magpie/internal/gui/cmdheld_other.go
T
yetone 3cdb7fb3a5 gui: a Command-click on the Mac's menu bar icon is left to the system, which drags the icon with it (#792, BennettChina) — Hidden Bar's users move icons with Command-drag, and magpie's icon opened its panel instead. The tray's click handler now reads the held modifiers ([NSEvent modifierFlags]) and does nothing when Command is down; other systems are unchanged. go vet, builds (darwin with the GUI, GOOS=linux nogui, GOOS=windows) and go test -tags nogui ./internal/gui/ under a temp HOME pass; the drag itself wasn't exercised here (it would move icons in the owner's live menu bar).
2026-10-04 22:45:28 +08:00

7 lines
145 B
Go
Raw Blame History

//go:build !darwin && !nogui
package gui
// cmdClick: only the Mac drags its tray icons with a modifier.
func cmdClick() bool { return false }
Reference in New Issue View Git Blame Copy Permalink
Powered by Gitea Version: 1.27.3 Page: 42ms Template: 2ms
Auto
English
Bahasa Indonesia Deutsch English Español Français Gaeilge Italiano Latviešu Magyar nyelv Nederlands Polski Português de Portugal Português do Brasil Suomi Svenska Türkçe Čeština Ελληνικά Български Русский Українська فارسی മലയാളം 日本語 简体中文 繁體中文(台灣) 繁體中文(香港) 한국어
Licenses API