/// Returns a new [StoredEvent], but with key meaning removed.
Returns a new [StoredEvent], but with key meaning removed.
Returns a new [ StoredEvent ] but with key meaning removed .
fn remove_key_meaning(self) -> Self {
        let mut event = self.event.clone();
        // A zero code point means a KeyEvent for which its edit effect should
        // be ignored. In contrast, an event with an unset code point has by
        // definition the same effect as if the US QWERTY keymap were applied.
        // See discussion at:
        // https://groups.google.com/a/fuchsia.dev/g/ui-input-dev/c/ITYKvbJS6_o/m/8kK0DRccDAAJ
        event = event.into_with_key_meaning(Some(KeyMeaning::Codepoint(0)));
        self.into_with_event(event)
    }
fn remove_key_meaning ( self ) -> Self { let mut event = self . event . clone ( ) ; // A zero code point means a KeyEvent for which its edit effect should // be ignored. In contrast, an event with an unset code point has by // definition the same effect as if the US QWERTY keymap were applied. // See discussion at: // https://groups.google.com/a/fuchsia.dev/g/ui-input-dev/c/ITYKvbJS6_o/m/8kK0DRccDAAJ event = event . into_with_key_meaning ( Some ( KeyMeaning :: Codepoint ( 0 ) ) ) ; self . into_with_event ( event ) }
Returns a new [StoredEvent], but with key meaning removed.
Returns a new [ StoredEvent ] but with key meaning removed .
self