make the gui/windows key behave as a OneShot hint: use before space cadet
(held_timeout: u16, released_timeout: u16)
| 183 | /// |
| 184 | /// hint: use before space cadet |
| 185 | pub fn one_shot_gui(held_timeout: u16, released_timeout: u16) -> Box<OneShot<ActionHandler, ActionNone, ActionNone>> { |
| 186 | Box::new(OneShot::new( |
| 187 | KeyCode::LGui, |
| 188 | KeyCode::RGui, |
| 189 | ActionHandler { |
| 190 | id: Gui as HandlerID, |
| 191 | }, |
| 192 | ActionNone{}, |
| 193 | ActionNone{}, |
| 194 | held_timeout, |
| 195 | released_timeout, |
| 196 | )) |
| 197 | } |
| 198 | /// Toggle a handler (layer) based on OneShot behaviour |
| 199 | pub fn one_shot_handler( |
| 200 | trigger: impl AcceptsKeycode, |
nothing calls this directly
no outgoing calls
no test coverage detected