Adding ontouchstart function to trigger focus for spriteform

This commit is contained in:
Tim Mickel 2016-01-22 14:52:31 -05:00
parent 8c2a26a070
commit 13b983bd57

View file

@ -593,12 +593,12 @@ export default class Paint {
var sform = newHTML('form', 'spriteform', p);
sform.name = 'spriteform';
var ti = newHTML('input', undefined, sform);
ti.onkeypress = undefined;
ti.autocomplete = 'off';
ti.autocomplete = false;
ti.autocorrect = false;
ti.name = 'name';
ti.maxLength = 25;
ti.firstTime = true;
ti.ontouchstart = () => {};
ti.onfocus = Paint.nameFocus;
ti.onblur = Paint.nameBlur;
ti.onkeypress = Paint.handleNamePress;