0
0
Fork 0
mirror of https://github.com/liabru/matter-js.git synced 2025-01-31 18:14:55 -05:00

Merge pull request #1 from Dino-Martinez/focused-keyboard-input

Added tabIndex to canvas defaults
This commit is contained in:
Secundino Martinez 2021-06-20 22:58:11 -07:00 committed by GitHub
commit 6a317dd760
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -1472,6 +1472,7 @@ var Mouse = require('../core/Mouse');
canvas.height = height; canvas.height = height;
canvas.oncontextmenu = function() { return false; }; canvas.oncontextmenu = function() { return false; };
canvas.onselectstart = function() { return false; }; canvas.onselectstart = function() { return false; };
canvas.tabIndex = 1;
return canvas; return canvas;
}; };