(t: &T)
| 201 | t.hash(&mut hasher); |
| 202 | hasher.finish() |
| 203 | } |
| 204 | |
| 205 | /// Translate a keyboard key from its JS name to its Rust `Key` enum |
| 206 | #[cfg(feature = "editor")] |
| 207 | pub(crate) fn translate_key(name: &str) -> Key { |
| 208 | use Key::*; |
| 209 | |
| 210 | trace!("Key event received: {name}"); |
| 211 | |
| 212 | match name { |
no test coverage detected