Don't override ascii graphical shortcuts (cherry-pick #34592) (#34595)

Cherry-picked Don't override ascii graphical shortcuts (#34592)

Closes #34536

Release Notes:

- (preview only) Fix shortcuts on Extended Latin keyboards on Linux

Co-authored-by: Conrad Irwin <conrad.irwin@gmail.com>
This commit is contained in:
gcp-cherry-pick-bot[bot] 2025-07-16 20:16:34 -06:00 committed by GitHub
parent 30cc8bd824
commit 192e0e32dd
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 {