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

Function one_shot_alt

src/premade.rs:169–181  ·  view source on GitHub ↗

make the alt keys behave as a OneShot hint: use before space cadet

(held_timeout: u16, released_timeout: u16)

Source from the content-addressed store, hash-verified

167///
168/// hint: use before space cadet
169pub fn one_shot_alt(held_timeout: u16, released_timeout: u16) -> Box<OneShot<ActionHandler, ActionNone, ActionNone>> {
170 Box::new(OneShot::new(
171 KeyCode::LAlt,
172 KeyCode::RAlt,
173 ActionHandler {
174 id: Alt as HandlerID,
175 },
176 ActionNone{},
177 ActionNone{},
178 held_timeout,
179 released_timeout,
180 ))
181}
182/// make the gui/windows key behave as a OneShot
183///
184/// hint: use before space cadet

Callers 1

test_abortFunction · 0.85

Calls

no outgoing calls

Tested by 1

test_abortFunction · 0.68