You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi All,
Our company is using nw 20.0 version for our application and we have a customer issue where 'stealing focus' has become the biggest issue. I'm able to replicate the problem intermittently and once it gets reproduced, I was able to see the problem persisting on all NW versions. To get away with the problem, I had to restart my computer.
Here is the problem:
When the application is running, I had opened notepad/word/some other editor where I am typing something. Our app has desktop notification feature. So, when any notification comes, the notification window is stealing the focus away from notepad.
NWJS Version : Any latest version (Was intermittently able to reproduce on all versions. Tried in 20.0, 27.4)
Operating System : Windows7, 8 and 10
I have a sample code using which, i am able to reproduce the problem. Here is the sample code
Extremely sorry if the code indentation is poor. As you see in the above code, I'm not using Focus function on the new window but still it is taking the focus.
Can someone help me in understand the issue?
Let me know if i can provide you with anymore information
Note: The JQueryPage.html page is just a simple html page.
The text was updated successfully, but these errors were encountered:
Closing this issue as I found a workaround (link) . Instead of calling show() function when necessary, I am initialising the window with (0,0) and then resizing it once loaded
Hi All,
Our company is using nw 20.0 version for our application and we have a customer issue where 'stealing focus' has become the biggest issue. I'm able to replicate the problem intermittently and once it gets reproduced, I was able to see the problem persisting on all NW versions. To get away with the problem, I had to restart my computer.
Here is the problem:
When the application is running, I had opened notepad/word/some other editor where I am typing something. Our app has desktop notification feature. So, when any notification comes, the notification window is stealing the focus away from notepad.
NWJS Version : Any latest version (Was intermittently able to reproduce on all versions. Tried in 20.0, 27.4)
Operating System : Windows7, 8 and 10
I have a sample code using which, i am able to reproduce the problem. Here is the sample code
Extremely sorry if the code indentation is poor. As you see in the above code, I'm not using Focus function on the new window but still it is taking the focus.
Can someone help me in understand the issue?
Let me know if i can provide you with anymore information
Note: The JQueryPage.html page is just a simple html page.
The text was updated successfully, but these errors were encountered: