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:
commit
6a317dd760
1 changed files with 1 additions and 0 deletions
|
@ -1472,6 +1472,7 @@ var Mouse = require('../core/Mouse');
|
|||
canvas.height = height;
|
||||
canvas.oncontextmenu = function() { return false; };
|
||||
canvas.onselectstart = function() { return false; };
|
||||
canvas.tabIndex = 1;
|
||||
return canvas;
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue