MCPcopy Create free account
hub / github.com/TyberiusPrime/KeyToKey / clear_unhandled

Method clear_unhandled

src/lib.rs:188–191  ·  view source on GitHub ↗

throw away unhandled key events

(&mut self)

Source from the content-addressed store, hash-verified

186 }
187 //throw away unhandled key events
188 pub fn clear_unhandled(&mut self) {
189 self.events
190 .drain_filter(|(_event, status)| (EventStatus::Unhandled == *status));
191 }
192 /// add a KeyPress event
193 pub fn add_keypress<X: AcceptsKeycode>(&mut self, keycode: X, ms_since_last: u16) {
194 let e = Key {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected