keyboardRippleShow

Commons
stable

Triggers the ripple effect on Enter or Space keydown, setting the internal keyboard-ripple flag. No-ops for any other key.

API

Signature

Signature TypeScript complète, extraite du fichier util.

typescript

API

Paramètres

Paramètres d'entrée acceptés par cet util.

e
requis
KeyboardEvent
The keydown KeyboardEvent. Only Enter and Space activate the ripple.

API

Valeur de retour

La valeur retournée par cet util.

No return value. Activates the ripple effect when the key matches Enter or Space.

Usage

Exemples

Extraits de code prêts à coller.

Attach keyboard ripple to a button

typescript