Skip to content

Can't correctly register that the three buttons are pressed using magic keyboard for iMac #77906

@wellmoonloft

Description

@wellmoonloft

I'm using flutter (2.0.1) to build a macOS APP. I want to monitor the buttons for undo operations, but it seems that I can't capture the three buttons being pressed correctly.

event.isMetaPressed && event.isKeyPressed(LogicalKeyboardKey.keyZ)

It’s okay to monitor two buttons being pressed, but when I monitor three buttons, the program can’t enter to print

if (event.isMetaPressed &&
        event.isShiftPressed &&
        event.isKeyPressed(LogicalKeyboardKey.keyZ)) {
      back = 7;
      print(back);
 }

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2Important issues not at the top of the work lista: desktopRunning on desktope: device-specificOnly manifests on certain devicesengineflutter/engine repository. See also e: labels.platform-macBuilding on or for macOS specifically

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions