Skip to content

[Bug]: 'system-context-menu' event is not triggered #37614

Closed

Description

@ferreira-tb

Preflight Checklist

Electron Version

23.1.4

What operating system are you using?

Windows

Operating System Version

Windows 10 Pro 22H2

What arch are you using?

x64

Last Known Working Electron version

none

Expected Behavior

System context menu should not appear.

Actual Behavior

It appears.

Testcase Gist URL

https://gist.github.com/ferreira-tb/d98c7d72a33a98f5dcc2baf438ee56fc

Additional Information

mainWindow.on('system-context-menu', (e) => e.preventDefault())

This should prevent the context menu from appearing. However, it still appears in regions with -webkit-app-region: drag; when frame: false.

I opened this issue to reproduce #37055.

Activity

  1. added
    has-repro-gist
    on Mar 20, 2023
  2. github-actions commented on Jul 24, 2023

    @github-actions
    Contributor

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  3. ferreira-tb commented on Jul 24, 2023

    @ferreira-tb
    ContributorAuthor

    bump

  4. electron-issue-triage commented on Oct 24, 2023

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  5. ferreira-tb commented on Oct 24, 2023

    @ferreira-tb
    ContributorAuthor

    Bump

  6. electron-issue-triage commented on Jan 23, 2024

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  7. pushkin- commented on Jan 23, 2024

    @pushkin-

    Bump

  8. electron-issue-triage commented on Apr 24, 2024

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  9. pushkin- commented on Apr 24, 2024

    @pushkin-

    bump

  10. electron-issue-triage commented on Jul 24, 2024

    @electron-issue-triage

    This issue has been automatically marked as stale. If this issue is still affecting you, please leave any comment (for example, "bump"), and we'll keep it open. If you have any new additional information—in particular, if this is still reproducible in the latest version of Electron or in the beta—please include it with your comment!

  11. pushkin- commented on Jul 24, 2024

    @pushkin-

    bump

  12. self-assigned this
    on Aug 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

23-x-ybug 🪲has-repro-gistplatform/windows

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions