web: Fixed Key.isDown(13) (enter key) detection on web

This commit is contained in:
Nathan Adams 2020-06-04 22:04:45 +02:00 committed by Mike Welsh
parent 48a7467ee0
commit 91b0b28aa8
1 changed files with 1 additions and 1 deletions

View File

@ -59,7 +59,7 @@ impl InputBackend for WebInputBackend {
match key {
KeyCode::Unknown => false,
KeyCode::Backspace => self.keys_down.contains("Backspace"),
KeyCode::Return => self.keys_down.contains("Return"),
KeyCode::Return => self.keys_down.contains("Enter"),
KeyCode::Shift => {
self.keys_down.contains("ShiftLeft") || self.keys_down.contains("ShiftRight")
}