zlgopen / awtk-web

在浏览器中运行AWTK应用程序
GNU Lesser General Public License v2.1
24 stars 8 forks source link

控件焦点切换的四个xml属性能不能在web上支持一下 #15

Closed Tracker647 closed 5 months ago

Tracker647 commented 5 months ago
<window text="Custom Soft Keyboard" anim_hint="htranslate"
  move_focus_up_key="up" move_focus_down_key="down" move_focus_left_key="left" move_focus_right_key="right">

  <edit name="edit" x="c" y="10" w="90%" h="30" focused="true" input_type="custom" text="" tips="custom"/>
  <view y="60" x="c" w="90%" h="-60" is_keyboard="true" grab_keys="true"
    children_layout="default(r=4,c=4,m=5,s=5)" >
    <button focused="true" focusable="true" name="key0" text="0" />
    <button focusable="true" name="key1" text="1" />
    <button focusable="true" name="key2" text="2" />
    <button focusable="true" name="key3" text="3" />
    <button focusable="true" name="key4" text="4" />
    <button focusable="true" name="key5" text="5" />
    <button focusable="true" name="key6" text="6" />
    <button focusable="true" name="key7" text="7" />
    <button focusable="true" name="key8" text="8" />
    <button focusable="true" name="key9" text="9" />
    <button focusable="true" name="key#" text="#" />
    <button focusable="true" name="backspace" text="<=" />
  </view>
</window>

我在公司电脑再实验了一下,确认桌面端通过按键切换焦点的功能到了浏览器上就不行,看起来原版awtk-web就是不支持按键焦点切换的,至少我用上文计算器的例子就是这个情况,希望这部分尽快更新支持下,谢谢!

xianjimli commented 5 months ago

改了,你更新awtk试试,谢谢。

Tracker647 commented 5 months ago

可以操作了,键盘和鼠标点html模拟器按钮都可以,谢谢。