HomeGuidesAPI Reference
HubBlogChangelogSupport ForumLog In
API Reference

Web SDK - HeldKeys.has()

Home > @rainway/web > HeldKeys > has

HeldKeys.has() method

Reports whether the given VirtualKey is pressed.

Signature:

has(key: VirtualKey): boolean;

Parameters

ParameterTypeDescription
keyVirtualKey

Returns:

boolean