[GH-ISSUE #227] CMD + F1 shortcut to alternate between mirror desktop or extended desktop stop working #177

Closed
opened 2026-05-05 05:20:42 -06:00 by gitea-mirror · 3 comments
Owner

Originally created by @didaquis on GitHub (May 30, 2020).
Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/227

Originally assigned to: @waydabber on GitHub.

First of all, thank you very much for this software! 😍

CMD + F1 to alternate between mirror desktop or extended desktop stop working after install MonitorControl.
There are some way to configure MonitorControl default keys to prevent override "CMD + F1" keyboard shortcut ????

Originally created by @didaquis on GitHub (May 30, 2020). Original GitHub issue: https://github.com/MonitorControl/MonitorControl/issues/227 Originally assigned to: @waydabber on GitHub. First of all, thank you very much for this software! 😍 CMD + F1 to alternate between mirror desktop or extended desktop stop working after install MonitorControl. There are some way to configure MonitorControl default keys to prevent override "CMD + F1" keyboard shortcut ????
gitea-mirror 2026-05-05 05:20:42 -06:00
Author
Owner

@JoniVR commented on GitHub (Jun 10, 2020):

The problem here is that MediaKeyTap internally uses a .defaultTap, which doesn't allow passthrough of MediaKey events.

image

We can solve this by using the .listenOnly option instead, but then we'd run into issues like displaying the HUD 2x and a bunch of other stuff because the default macOS brightness and volume actions would pass through.

I'm not sure how we could go about implementing this right away, but it might be possible.

Link to line in MediaKeyTap

<!-- gh-comment-id:642090362 --> @JoniVR commented on GitHub (Jun 10, 2020): The problem here is that `MediaKeyTap` internally uses a `.defaultTap`, which doesn't allow passthrough of MediaKey events. ![image](https://user-images.githubusercontent.com/7591717/84287923-cf284180-ab40-11ea-8203-a3a70c7075e6.png) We can solve this by using the `.listenOnly` option instead, but then we'd run into issues like displaying the HUD 2x and a bunch of other stuff because the default macOS brightness and volume actions would pass through. I'm not sure how we could go about implementing this right away, but it might be possible. [Link to line in MediaKeyTap](https://github.com/the0neyouseek/MediaKeyTap/blob/4314a361486c2907956756748939c61f460241bd/MediaKeyTap/MediaKeyTapInternals.swift#L173)
Author
Owner

@waydabber commented on GitHub (Sep 1, 2021):

We could catch F1+BrightnessDown and induce mirroring using CGConfigureDisplayMirrorOfDisplay() ourselves.

<!-- gh-comment-id:910613728 --> @waydabber commented on GitHub (Sep 1, 2021): We could catch F1+BrightnessDown and induce mirroring using `CGConfigureDisplayMirrorOfDisplay()` ourselves.
Author
Owner

@waydabber commented on GitHub (Sep 11, 2021):

I added this in 3.1.0. I had to implement the feature programmaticaly as I could not figure out how to kick in the original implementation of the OS. To me it seems to work the same way as the original but testing will be needed.

<!-- gh-comment-id:917388600 --> @waydabber commented on GitHub (Sep 11, 2021): I added this in 3.1.0. I had to implement the feature programmaticaly as I could not figure out how to kick in the original implementation of the OS. To me it seems to work the same way as the original but testing will be needed.
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/MonitorControl#177
No description provided.