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 1661e2888a
commit 9b394d8753

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>