[gtk/gtk-3-24: 1/2] Issue #1633 - Ensure focus on click
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/gtk-3-24: 1/2] Issue #1633 - Ensure focus on click
- Date: Tue, 5 Feb 2019 13:22:24 +0000 (UTC)
commit 9b394d875307ab86778a66a678ee9497648946e8
Author: Mickael Istria <mistria redhat com>
Date: Fri Feb 1 10:08:43 2019 +0000
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>
gdk/broadway/client.html | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/gdk/broadway/client.html b/gdk/broadway/client.html
index 42b5c45f01..a2954c1f31 100644
--- a/gdk/broadway/client.html
+++ b/gdk/broadway/client.html
@@ -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>
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]