I\'ve been looking for a solution in this forum, but not found yet. I need to keep the focus on a canvas element always, no matter where i click on the page. I have several
What about this (using jQuery):
$('#canvas').focus().blur(function() { $('#canvas').focus(); });
The idea is to give it the focus back every time it loses it (blur).
I made an example (with a textbox which is basically the same) here: http://jsfiddle.net/thepeak/j02vyryf/