Pressing a key grabbed via XInput causes deactivation and reactivation
As previously documented in Orca MR 109, when a key that has been grabbed using DeviceEventController
's current XInput-based key grabbing is pressed, the currently active window is deactivated and then immediately reactivated. This is the reason why Orca currently uses legacy keyboard handling except in GTK 4 apps.