mirror of
https://github.com/MonitorControl/MonitorControl.git
synced 2026-05-15 14:15:55 -06:00
[PR #645] [MERGED] feat: close preference pane using cmd + w #1146
Labels
No labels
Status: Abandoned
arm64
beta
beta
bug
done
duplicate
enhancement
feedback needed from reporter
in progress
invalid
investigating
known Issue
monitor Issue
pull-request
translation
unable to reproduce
unreleased
x86
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: github-starred/MonitorControl#1146
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/MonitorControl/MonitorControl/pull/645
Author: @JoniVR
Created: 10/1/2021
Status: ✅ Merged
Merged: 10/1/2021
Merged by: @JoniVR
Base:
master← Head:feat/close-using-shortcut📝 Commits (1)
60257edfeat: close preference pane using cmd+w📊 Changes
3 files changed (+14 additions, -2 deletions)
View changed files
📝
MonitorControl/Extensions/Preferences+Extension.swift(+12 -0)📝
MonitorControl/Info.plist(+1 -1)📝
MonitorControlHelper/Info.plist(+1 -1)📄 Description
closes #639
This implements the ability to close the preferences pane using command + w
I looked around at which shortcuts other applications with similar Preference system listened to (Vimac and system prefs for example) and decided that command + w made most sense. Feel free to correct me or suggest other combinations.
I didn't manage to get esc to work, that usually requires implementing
cancelOperation, perhaps the window doesn't have proper focus or something else is wrong. Though I didn't notice any other apps listening to escape either so maybe we shouldn't do it as to not deviate from "the standard".Another thing to note: If you were to assign command + w to a MonitorControl shortcut, that would take priority, which makes sense imo.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.