Curl Global Community

Full Version: KeyPress.value は Keycode.value ではない?
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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"}
            }
        }
    }