create_hotkey(self,
folder,
description,
modifiers,
key,
contents)
| source code
|
Create a text hotkey
Usage: engine.create_hotkey(folder, description, modifiers, key,
contents)
When the given hotkey is pressed, it will be replaced with the given
text. Modifiers must be given as a list of strings, with the following
values permitted:
<ctrl> <alt> <super> <hyper> <shift>
The key must be an unshifted character (i.e. lowercase)
- Parameters:
folder - folder to place the abbreviation in, retrieved using
engine.get_folder()
description - description for the phrase
modifiers - modifiers to use with the hotkey (as a list)
key - the hotkey
contents - the expansion text
- Raises:
Exception - if the specified hotkey is not unique
|