11-28-2011, 08:47 PM
KeyPress の値を比較しようとしても思い通りの比較ができていなかったのですが、
Keycode ではなく、 KepPressValue を使うことで正しく比較できました。
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"}
}
}
}