XWayland: allow snooping non-character keys with elevated snooping modes
These keys do not represent a security risk to allow apps to snoop since they can't be used to type passwords etc.
BUG: 474705 FIXED-IN: 6.0
Test plan
- Set the snooping mode to the second or third setting in the KCM
- Use Discord
- Have a friend in Discord
- Set your push-to-talk key in Discord to a non-character key like Shift or Home or F12
- Start an audio or video chat with your friend (it's okay if they don't answer)
- Alt+Tab to another window
- Press your push-to-talk key
If it worked, you'll see a green circle around your avatar, indicating that your microphone is now recording.
Edited by Nate Graham