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
<buttonclass="demo-button no-display" id="focus-on-modal-window">Focus on Demo</button>
55
54
</div>
56
-
<p>In this demo we create a new window and listen for <code>move</code> and <code>resize</code> events on it. Click the demo button, change the new window and see the dimensions and position update here, above.</p>
57
-
<p>Click the focus on Window button to switch focus to the modal window if it's not visible anymore.</p>
58
-
<p>There are a lot of methods for controlling the state of the window such as the size and location as well as events to listen to for window changes. Visit the <ahref="http://electron.atom.io/docs/api/browser-window">documentation<spanclass="u-visible-to-screen-reader">(opens in new window)</span></a> for the full list.</p>
55
+
<p>In this demo we create a new window and listen for <code>move</code> and <code>resize</code> events on it. Click the demo button, change the new window and see the dimensions and position update here, above.</p>
56
+
<p>There are a lot of methods for controlling the state of the window such as the size, location, and focus status as well as events to listen to for window changes. Visit the <ahref="http://electron.atom.io/docs/api/browser-window">documentation<spanclass="u-visible-to-screen-reader">(opens in new window)</span></a> for the full list.</p>
<buttonclass="demo-button disappear" id="focus-on-modal-window">Focus on Demo</button>
73
+
</div>
74
+
<p>In this demo, we create a new window and listen for <code>blur</code> event on it. Click the demo button to create a new modal window, and switch focus back to the parent window by clicking on it. You can click the <i>Focus on Demo</i> button to switch focus to the modal window again.</p>
0 commit comments