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

Class InverseActionHandler

src/premade.rs:111–113  ·  view source on GitHub ↗

Disable/enable handler (layer) on activation/deactivation for use with PressRelease, StickyKeys, OneShot, SpaceCadet Can also be used with Modifier::* (pass in mod as HandelerID) Acts as the inverse of ActionHandler - this one enables when the button is released!

Source from the content-addressed store, hash-verified

109/// Can also be used with Modifier::* (pass in mod as HandelerID)
110/// Acts as the inverse of ActionHandler - this one enables when the button is released!
111pub struct InverseActionHandler {
112 id: HandlerID,
113}
114impl InverseActionHandler {
115 pub fn new(id: HandlerID) -> InverseActionHandler {
116 InverseActionHandler{id}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected