Skip to content

No keyboard focus in figures on macOS with Anaconda #9839

Closed
@cbrnr

Description

@cbrnr

Using Python installed via Anaconda on macOS, figures do not receive keyboard focus. All key presses go to the terminal instead.

Minimal example:

import matplotlib.pyplot as plt
plt.plot(1)
plt.show()
# then click on the "Save" icon
# it is impossible to change the file name in the dialog window

The same thing happens when listening to key press events - they are simply not detected at all.

Using Python installed via Homebrew doesn't have this problem. There are some reports regarding this behavior (#665, #2120, #3367, #4372), but I still run into this issue. I'm using the latest Anaconda packages and tried the latest Matplotlib release and latest development version.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions