Set the tabindex of the canvas element to 1 or something like this
<canvas tabindex='1'></canvas>
It’s an old trick to make any element focusable
More Related Contents:
- How to clear the canvas for redrawing
- HTML5 Canvas Resize (Downscale) Image High Quality?
- Resize image with javascript canvas (smoothly)
- HTML5 Canvas camera/viewport – how to actually do it?
- Capture frames from video with HTML5 and JavaScript
- How to use Google fonts in Canvas when Drawing DOM objects in SVG?
- Load image from url and draw to HTML5 Canvas
- Save canvas as jpg to desktop [duplicate]
- HTML canvas – drawing disappear on resizing
- canvas getContext(“2d”) returns null
- clearing circular regions from HTML5 Canvas
- How to detect shape on a transparent canvas?
- HTML5 Canvas API – formatting individual words with italics
- Scaling an image to fit on canvas
- True Isometric Projection with HTML5 Canvas
- Using HTML5/Canvas/JavaScript to take in-browser screenshots
- Capture HTML Canvas as gif/jpg/png/pdf?
- Resizing an image in an HTML5 canvas
- Zoom Canvas to Mouse Cursor
- Zoom in on a point (using scale and translate)
- canvas2d toDataURL() different output on different browser
- How to resize html canvas element?
- How do I rotate a single object on an html 5 canvas?
- Resize a Base-64 image in JavaScript without using canvas
- How to save canvas animation as gif or webm?
- How to flip images horizontally with HTML5
- Is there an equivalent of canvas’s toDataURL method for SVG? [closed]
- How can I get DPI from image in JS?
- How can I animate the drawing of text on a web page?
- HTML Canvas Full Screen