Skip to content

[Bug]: macOS backend UI doesn't update on 'o' and 'p' shortcuts #31933

Description

@iccir

Bug summary

  1. Open a figure
  2. Press 'o' and 'p' to toggle the Pan/Zoom and Zoom-to-rect tools
  3. Notice that the buttons in the UI do not update state
  4. Click a button to toggle it, the button toggles, but is still not in sync with the currently selected tool

Code for reproduction

(Any figure)

Actual outcome

'o' and 'p' do not update the UI's button state.

Expected outcome

The button state of the Pan/Zoom and Zoom-to-rect tools always matches the actual selected tool, like it does in qtagg.

Additional information

No response

Operating system

macOS 14.7

Matplotlib Version

dev / 3.11

Matplotlib Backend

macOS

Python version

Python 3.14.5

Jupyter version

No response

Installation

None

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