electron-api-demos icon indicating copy to clipboard operation
electron-api-demos copied to clipboard

[Window Events: Blur and Focus] 'Focus on Demo' button is clickable even if the demo is in focus.

Open dtetruash opened this issue 7 years ago • 0 comments

  • What operating system are you using?

Windows 10 64-bit

  • What version of Node.js is on your system?

Node.js v8.9.4


Steps to reproduce:

  1. Go to section "Windows" -> "Create and Manage Windows" -> "Window Events: Blur and Focus"
  2. Click on 'View Demo'
  3. Move the resulting demo window aside such that the position of where the 'Focus on Demo' button would be is shown.
  4. Without focusing the demo window click that area.

Desired result:

Demo window should become unfocused in favour of the main window, and the 'Focus on Demo' button should reappear.

Actual result:

The main window is focused and then immediately unfocused in favour of the demo window.

Supposed cause:

The 'Focus on Demo' button is not disabled when the demo window is in focus.

dtetruash avatar Jan 29 '18 12:01 dtetruash