Skip to content

MacOS: Key modifiers deprecated #9837

Closed
@jklymak

Description

@jklymak

Bug report

Issue

A heads up that modifiers like:

matplotlib/src/_macosx.m

Lines 2601 to 2607 in 813d842

NSMutableString* returnkey = [NSMutableString string];
if ([event modifierFlags] & NSControlKeyMask)
[returnkey appendString:@"ctrl+" ];
if ([event modifierFlags] & NSAlternateKeyMask)
[returnkey appendString:@"alt+" ];
if ([event modifierFlags] & NSCommandKeyMask)
[returnkey appendString:@"cmd+" ];

are deprecated:

https://developer.apple.com/documentation/appkit/nseventmodifierflags?language=objc

and probably need to be replaced by the flags like NSEventModifierFlagCommand etc.

I'd change, but I'm not sure how this will affect older OS X installs etc...

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions