Make case insensitive of keyboard_mode
This commit is contained in:
parent
669e8b98b2
commit
fe99231090
1 changed files with 1 additions and 1 deletions
|
|
@ -1274,7 +1274,7 @@ impl Handler {
|
|||
fn key_down_or_up(&mut self, down_or_up: bool, key: RdevKey, evt: Event) {
|
||||
// Call different functions according to keyboard mode.
|
||||
let mode = match std::env::var("KEYBOARD_MODE")
|
||||
.unwrap_or(String::from("legacy"))
|
||||
.unwrap_or(String::from("legacy")).to_lowercase()
|
||||
.as_str()
|
||||
{
|
||||
"map" => KeyboardMode::Map,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue