Gets a value that indicates whether a key was pressed and held.
HRESULT IDOMKeyboardEvent::get_repeat(VARIANT_BOOL *p);
- Pointer to a variable of type VARIANT_BOOL that receives VARIANT_TRUE if the key has been pressed and held; otherwise, VARIANT_FALSE.
Returns S_OK if successful, or an error value otherwise.
The first key event with a repeat property of VARIANT_TRUE indicates the beginning of a long key press.