Click or drag to resize

GH_DocumentIsEscapeKeyDown Method

Gets whether the escape key was pressed since the last time this function was called. Though in reality the actual escape state is checked no more than once every 50 milliseconds or so, which should be sufficient for a smooth user experience.

Namespace:  Grasshopper.Kernel
Assembly:  Grasshopper (in Grasshopper.dll)
public static bool IsEscapeKeyDown()

Return Value

Type: Boolean
True if escape was/is pressed, false if otherwise.
If GetAsyncKeyState is called by some other application, it will mess with the value returned here, as GetAsyncKeyState is a system wide static method.
See Also