Skip to content

[Bug]: Tray click event cause CJK input issue on Mac OS #32307

Closed as not planned

Description

@xland

Preflight Checklist

Electron Version

16.x.x 15.x.x 14.x.x

What operating system are you using?

macOS

Operating System Version

macOS

What arch are you using?

x64

Last Known Working Electron version

unknown

Expected Behavior

One can call window.show() in the Tray click event callback method.
And can use Chinese(Japanese,Korea) IME input on the window correctly.

Actual Behavior

on Mac OS,
When a BrowserWindow is not in the front of other windows,
call window.show() in the Tray click event callback method.
The BrowserWindow will go to the front.
But one can not use Chinese(Japanese,Korea) input IME on this window at this time.
The IME can not show up and can not change.

Testcase Gist URL

No response

Additional Information

I try to use mouse-down envent
It has the right behavior.

This issue is realy hard to found out.

Activity

  1. changed the title [-][Bug]: Tray click event cause input issue on Mac OS[/-] [+][Bug]: Tray click event cause CJK input issue on Mac OS[/+] on Jan 1, 2022
  2. codebytere commented on Jan 3, 2022

    @codebytere
    Member

    Thanks for reporting this and helping to make Electron better!

    Because of time constraints, triaging code with third-party dependencies is usually not feasible for a small team like Electron's.

    Would it be possible for you to make a standalone testcase with only the code necessary to reproduce the issue? For example, Electron Fiddle is a great tool for making small test cases and makes it easy to publish your test case to a gist that Electron maintainers can use.

    Stand-alone test cases make fixing issues go more smoothly: it ensure everyone's looking at the same issue, it removes all unnecessary variables from the equation, and it can also provide the basis for automated regression tests.

    I'm adding the blocked/need-repro label for this reason. After you make a test case, please link to it in a followup comment. This issue will be closed in 10 days if the above is not addressed.

  3. codebytere commented on Jan 10, 2022

    @codebytere
    Member

    @xland the problem is still not clear. Your sample does not work as is and there's no input tag in the html of the fiddle - what is the issue exactly?

  4. xland commented on Jan 22, 2022

    @xland
    ContributorAuthor
  5. OldDream commented on Jan 27, 2022

    @OldDream

    Call hide() before calling show().
    This solve my problem in macos 12.2

  6. whuhewei commented on Apr 8, 2022

    @whuhewei

    Call hide() before calling show(). This solve my problem in macos 12.2

    But when your browser window is maximum, then this will cause it lost title bar

  7. zhoushaokun commented on Jul 21, 2022

    @zhoushaokun
  8. wanghanzhen commented on Sep 8, 2022

    @wanghanzhen
  9. added
    has-repro-gist
    and removed
    blocked/need-repro
    on Sep 12, 2022
  10. github-actions commented on Jan 10, 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!

  11. github-actions commented on Feb 10, 2023

    @github-actions
    Contributor

    This issue has been closed due to inactivity, and will not be monitored. If this is a bug and you can reproduce this issue on a supported version of Electron please open a new issue and include instructions for reproducing the issue.

  12. stefanJi commented on Jun 7, 2023

    @stefanJi

    Same problem in electron 20.1.0, macos 12.1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    15-x-y16-x-ybug 🪲component/trayhas-repro-gistplatform/macOSstale

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions