Microsoft's Windows 8, Windows 10 and Windows 11, and Apple's macOS have options for this.
For Microsoft's Windows 8, Windows 10, and Windows 11, along with Apple's macOS, there are options available to configure this feature.