Skip to content

Add support for listening to media keys and other special keys on macos#144

Closed
jonatino wants to merge 5 commits into
Narsil:mainfrom
jonatino:main
Closed

Add support for listening to media keys and other special keys on macos#144
jonatino wants to merge 5 commits into
Narsil:mainfrom
jonatino:main

Conversation

@jonatino

@jonatino jonatino commented Oct 7, 2024

Copy link
Copy Markdown
Contributor

Media keys like play/pause/mute/volume up/down did not work until these changes. They are considered "special keys" in macos and required some extra work to make the callbacks work.

References:
https://github.com/nhurden/MediaKeyTap/blob/master/MediaKeyTap/NSEventExtensions.swift
https://github.com/nhurden/MediaKeyTap/blob/master/MediaKeyTap/MediaKeyTapInternals.swift

@Narsil Narsil left a comment

Copy link
Copy Markdown
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This doesn't seem to work on my M3.

Are you using a physical keyboard to track this or a regular laptop Fn + X key ? (Fn + Play doesn't trigger any event on main, but Fn + Dictation does).

@Narsil

Narsil commented Jun 23, 2025

Copy link
Copy Markdown
Owner

Merged with you as co-author here: #173

@Narsil Narsil closed this Jun 23, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants