Don't override ascii graphical shortcuts (#34592)

Closes #34536

Release Notes:

- (preview only) Fix shortcuts on Extended Latin keyboards on Linux
This commit is contained in:
Conrad Irwin 2025-07-16 20:09:38 -06:00 committed by GitHub
parent ebad5ca50e
commit 9f302df6d6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -827,6 +827,9 @@ impl crate::Keystroke {
let name = xkb::keysym_get_name(key_sym).to_lowercase();
if key_sym.is_keypad_key() {
name.replace("kp_", "")
} else if key_utf8.len() == 1 && key_utf8.chars().next().unwrap().is_ascii_graphic()
{
key_utf8.clone()
} else if let Some(key_en) = guess_ascii(keycode, modifiers.shift) {
String::from(key_en)
} else {