From ca28c068c0dc6a95a60e5a70ce00d75f9b6f37a0 Mon Sep 17 00:00:00 2001 From: "L. Krause" Date: Sat, 22 Jul 2017 15:43:05 +0200 Subject: Implement input focus behavior in HTML5 - Key and mouse events are only consumed if canvas is focused - NOTIFICATION_WM_MOUSE_ENTER, _MOUSE_EXIT, _FOCUS_IN and _FOCUS_OUT are emitted --- platform/javascript/godot_shell.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'platform/javascript/godot_shell.html') diff --git a/platform/javascript/godot_shell.html b/platform/javascript/godot_shell.html index 6c7069a8f0..ee7399a129 100644 --- a/platform/javascript/godot_shell.html +++ b/platform/javascript/godot_shell.html @@ -83,6 +83,10 @@ color: white; } + #canvas:focus { + outline: none; + } + /* Status display * ============== */ @@ -147,7 +151,7 @@ $GODOT_HEAD_INCLUDE
- + HTML5 canvas appears to be unsupported in the current browser.
Please try updating or use a different browser.
-- cgit v1.2.3