web: Fixed Key.isDown(13) (enter key) detection on web
This commit is contained in:
parent
48a7467ee0
commit
91b0b28aa8
|
@ -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")
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue