set_sticky_modifiers
- pick.set_sticky_modifiers(*args)
Define keys on the keyboard that should be treated as “sticky modifiers”.
“sticky modifiers” are used in “click”- “pick”- and “move” callbacks to define modifiers that should remain active even if the corresponding key on the keyboard is released.
a “sticky modifier” <KEY> will remain activated until
“ctrl + <KEY>” is pressed to deactivate the sticky modifier
another sticky modifier key is pressed on the keyboard
- Parameters:
args (str) –
Any positional argument passed to this function will be used as sticky-modifier, e.g.:
>>> m.cb.click.set_sticky_modifiers("a", "1", "x")
Examples
>>> m = Maps() >>> m.cb.click.attach.annotate(modifier="1") >>> m.cb.click.set_sticky_modifiers("1")