Skip to content

Replace Carbon HotKey registration with NSEvent API #3310

@droidmonkey

Description

@droidmonkey

Expected Behavior

Use modern API's on macOS

Current Behavior

We use Carbon to register the global hotkey. This method is deprecated since 10.8.

Possible Solution

https://developer.apple.com/documentation/appkit/nsevent/1535472-addglobalmonitorforeventsmatchin?language=objc

Replace static uint16 qtToNativeKeyCode(Qt::Key key); with static CGKeyCode qtToNativeKeyCode(Qt::Key key);

Remove -framework Carbon from mac-autotype CMakeLists

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions