Issue #1633 - Ensure focus on click

This is necessary to give back focus to the Broadway elements when
content is embedded in an IFrame.

Signed-off-by: Mickael Istria <mistria@redhat.com>
This commit is contained in:
Mickael Istria 2019-02-01 10:08:43 +00:00
parent 25e199e7b7
commit 14010899b5

View File

@ -10,6 +10,6 @@ body { overflow: hidden; }
<script type="text/javascript" src="broadway.js"></script>
</head>
<body onload="connect()">
<body onload="connect()" onclick="if (!document.hasFocus() && window.topElement !== window.self) { window.focus(); }">
</body>
</html>