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

Method is_modifier

src/key_codes.rs:200–202  ·  view source on GitHub ↗

needed to build USB reports

(self)

Source from the content-addressed store, hash-verified

198impl KeyCode {
199 /// needed to build USB reports
200 pub fn is_modifier(self) -> bool {
201 KeyCode::LCtrl <= self && self <= KeyCode::RGui
202 }
203 /// needed to build USB reports
204 pub fn as_modifier_bit(self) -> u8 {
205 if self.is_modifier() {

Callers 1

as_modifier_bitMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected