onAcceleratorKeyPressed method

  1. @override
void onAcceleratorKeyPressed(
  1. AcceleratorKeyPressedDetail detail
)
inherited

This event runs when an accelerator key or key combo is pressed or released while the WebView is focused. A key is considered an accelerator if either of the following conditions are true:

  • Ctrl or Alt is currently being held.
  • The pressed key does not map to a character.

A few specific keys are never considered accelerators, such as Shift. The Escape key is always considered an accelerator.

Auto-repeated key events caused by holding the key down also triggers this event. Filter out the auto-repeated key events by verifying the AcceleratorKeyPressedDetail.physicalKeyStatus property.

Officially Supported Platforms/Implementations:

Implementation

@override
void onAcceleratorKeyPressed(AcceleratorKeyPressedDetail detail) {}