greenteapot1
游民
积分:100

有关选字框:在inputtext按下enter键,会出现选字框

(直接输入数字不允许用户输入其他字符,以减少不必要的操作,提高使用效率。)
请问怎么实现直接输入数字

openface
技术支持
积分:420

在edit元素加入属性allinput = "5",如:

 <edit id="edit1"  x="52"  y="63"  stroke="#B1AEAE" textWidth="181"  textHeight="25"  multiline="true"  stroke_onfocus="#E8BA06" font-size="14"  fill="#ffffff" allinput="5"></edit>