This PR adds two small utility methods: isMacOS() and getOSPreferredModifierKey(). The latter utility returns the Keys.META if the OS is macOS and Keys.Control otherwise.
These utilities are then used in the toolbar_toolbar test to ensure that the OS-specific modifier key is used in the "select all text" chord.
This PR adds two small utility methods:
isMacOS()
andgetOSPreferredModifierKey()
. The latter utility returns theKeys.META
if the OS is macOS andKeys.Control
otherwise.These utilities are then used in the toolbar_toolbar test to ensure that the OS-specific modifier key is used in the "select all text" chord.
see #2735
WAI Preview Link (Last built on Fri, 22 Nov 2024 02:53:29 GMT).