Skip to content

Commit e016f91

Browse files
committed
KeyboardState.html log blur and focus
1 parent ff8ff16 commit e016f91

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

KeyboardState.html

+10
Original file line numberDiff line numberDiff line change
@@ -100,9 +100,19 @@
100100
logEvent(d + " == press");
101101
return false;
102102
}
103+
function MonitorBlur()
104+
{
105+
logEvent("blur");
106+
}
107+
function MonitorFocus()
108+
{
109+
logEvent("focus");
110+
}
103111

104112
document.onkeydown = MonitorKeyDown;
105113
document.onkeyup = MonitorKeyUp;
106114
document.onkeypress = MonitorKeyPress;
115+
document.body.onblur = MonitorBlur;
116+
document.body.onfocus = MonitorFocus;
107117
</script>
108118
</body></html>

0 commit comments

Comments
 (0)