fix: default focus

This commit is contained in:
cha0s 2019-03-28 21:00:11 -05:00
parent 58ffde7d48
commit 2bedf3847d

View File

@ -41,6 +41,7 @@ room.on('entityAdded', (entity) => {
const appNode = document.querySelector('.app');
renderer.element.tabIndex = 0;
appNode.appendChild(renderer.element);
renderer.element.focus();
// Accept input.
const canvasNode = document.querySelector('.app canvas');
const actionRegistry = new ActionRegistry();