Skip to content

Should BrowserWindow.focus() fire focus event on JS window object? #26

Closed

Description

@kevinsawicki

Currently it appears that calling remote.getCurrentWindow().focus() does not trigger a focus event to listeners bound using $(window).focus -> console.log 'focusing'.

Is this something atom-shell should do?

It is pretty easy to work-around it via atom/atom@772a990

Activity

  1. mutle commented on Jun 17, 2013

    @mutle

    👍 on having atom-shell fire the callback to the window.

  2. zcbenz commented on Jun 18, 2013

    @zcbenz
    Contributor

    What if the focus is already on the devtools? Then calling remote.getCurrentWindow().focus() would force the focus to move from devtools to webview.

  3. zcbenz commented on Jun 21, 2013

    @zcbenz
    Contributor

    I'm now closing this issue because supporting it would have the side effect of making devtools lose focus, which may not be expected.

  4. added 2 commits that reference this issue on May 9, 2017
  5. added a commit that references this issue on May 1, 2018
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions