Skip to content

Unstable after fullscreen behavior since v66.0 #7980

Open
@toxygen

Description

@toxygen

Issue Type

  • Bug Report
  • Feature Request
  • Successfully reproduced against the latest version of NW.js?

Current/Missing Behavior

After using nw.Window.get().toggleFullscreen() to enter and exit fullscreen, the window is behaving unexpectedly. There are 2 symptoms:

  1. event document.onkeydown stops being triggered after any key is pressed. This can be worked around by pressing tab key and then the event starts being triggered correctly again. The issue can be also verified by pressing any other keys than tab, e.g. arrows or letters (even 'f' stops working) - the application will issue 'error' sound like as if you reach end of some input form and try to type further.

  2. black line appears on the bottom of the screen after exiting fullscreen. see attachments

Symptom 1) happens 9 out of 10 times the application is launched.
Symptom 2) happens completely randomly, i.e. 5 times app is launched, no black stripe. 5 times launched later on, the symptom is there.

Before entering fullcsreen mode:
Screenshot 2022-10-15 at 14 56 17
After exiting fullscreen mode:
Screenshot 2022-10-15 at 14 56 21

Expected/Proposed Behavior

  1. Same behavior all the time
  2. Fullscreen toggle should have no effect on onkeydown event.
  3. Black stripe should not appear after exiting fullscreen.

Additional Info

This is a regression. Until v65.1 this issue was not present. It was introduced in v66.0

Attaching 4 line script to reproduce the issue. See repro link.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions