linux: Detect shift better (#15013)
Release Notes: - linux: Fixed typing shortcuts like ctrl-/ on some systems
This commit is contained in:
parent
c84da37030
commit
b4a8f14a76
1 changed files with 1 additions and 1 deletions
|
@ -724,7 +724,7 @@ impl Keystroke {
|
||||||
// we only include the shift for upper-case letters by convention,
|
// we only include the shift for upper-case letters by convention,
|
||||||
// so don't include for numbers and symbols, but do include for
|
// so don't include for numbers and symbols, but do include for
|
||||||
// tab/enter, etc.
|
// tab/enter, etc.
|
||||||
if key.chars().count() == 1 && key_utf8 == key {
|
if key.chars().count() == 1 && key.to_lowercase() == key.to_uppercase() {
|
||||||
modifiers.shift = false;
|
modifiers.shift = false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue