Files
cocos-engine/templates/wechatprogram/index.wxml
mmyduckx 097c3cead0 keyboard input support for wechat program (#14836)
* add keyboard input adapter for wechat program

* refine

* refine
2023-04-20 18:53:56 +08:00

24 lines
609 B
Plaintext
Executable File

<!--index.wxml-->
<view class="container">
<view class="weui-cell weui-cell_input">
<input class="weui-input"
auto-focus
bindinput="onKeyboardInput"
bindblur="onKeyboardComplete"
bindconfirm="onKeyboardConfirm"
confirm-type="{{confirmType}}"
password="{{isPassword}}"
maxLength="{{maxLength}}"
wx:if="{{showInput}}"
/>
</view>
<canvas
type="webgl"
id="myCanvas"
bindtouchstart="touchStart"
bindtouchmove="touchMove"
bindtouchend="touchEnd"
bindtouchcancel="touchCancel"
></canvas>
</view>