mirror of
https://github.com/scratchfoundation/scratchjr.git
synced 2025-02-26 22:45:13 -05:00
Adding ontouchstart function to trigger focus for spriteform
This commit is contained in:
parent
8c2a26a070
commit
13b983bd57
1 changed files with 2 additions and 2 deletions
|
@ -593,12 +593,12 @@ export default class Paint {
|
||||||
var sform = newHTML('form', 'spriteform', p);
|
var sform = newHTML('form', 'spriteform', p);
|
||||||
sform.name = 'spriteform';
|
sform.name = 'spriteform';
|
||||||
var ti = newHTML('input', undefined, sform);
|
var ti = newHTML('input', undefined, sform);
|
||||||
ti.onkeypress = undefined;
|
ti.autocomplete = false;
|
||||||
ti.autocomplete = 'off';
|
|
||||||
ti.autocorrect = false;
|
ti.autocorrect = false;
|
||||||
ti.name = 'name';
|
ti.name = 'name';
|
||||||
ti.maxLength = 25;
|
ti.maxLength = 25;
|
||||||
ti.firstTime = true;
|
ti.firstTime = true;
|
||||||
|
ti.ontouchstart = () => {};
|
||||||
ti.onfocus = Paint.nameFocus;
|
ti.onfocus = Paint.nameFocus;
|
||||||
ti.onblur = Paint.nameBlur;
|
ti.onblur = Paint.nameBlur;
|
||||||
ti.onkeypress = Paint.handleNamePress;
|
ti.onkeypress = Paint.handleNamePress;
|
||||||
|
|
Loading…
Reference in a new issue