make the alt keys behave as a OneShot hint: use before space cadet
(held_timeout: u16, released_timeout: u16)
| 167 | /// |
| 168 | /// hint: use before space cadet |
| 169 | pub 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 |