KeyPress.value は Keycode.value ではない?

1 件の投稿

KeyPress の値を比較しようとしても思い通りの比較ができていなかったのですが、
Keycode ではなく、 KepPressValue を使うことで正しく比較できました。

Code:
{frame.add-event-handler
        {on kp:KeyPress do
            {if kp.value == KeyPressValue.tab then
             {output "KeyPressValue.tab"}
            }
            {if kp.value == Keycode.tab.value then
                ||このif文には入らない
             {output "Keycode.tab.value"}
            }
        }
    }