Wrapper around `self.on_key_tx.try_send` that always expects to succeed.
(&self, key: Key)
| 82 | impl OnScreenKeyboard { |
| 83 | /// Wrapper around `self.on_key_tx.try_send` that always expects to succeed. |
| 84 | fn safe_try_send(&self, key: Key) { |
| 85 | if let Err(e) = self.on_key_tx.try_send(key) { |
| 86 | log_and_panic!("Send to unbounded channel must succeed: {}", e); |
| 87 | } |
| 88 | } |
| 89 | |
| 90 | /// Pushes a new captured `dom_event` input event into the input. |
| 91 | pub fn inject_input_event(&self, dom_event: InputEvent) { |
no outgoing calls
no test coverage detected