Custom keys definition
If at all possible, an inkscape panel to setup which keys do what in the presentation. Will need to think how to handle custom keys definitions in the code, how to catch keys in inkscape/python (press a key to define...), multiple keys for an action and where to save those defaults (regenerate the jessyink.js file? a default jessyink.js file?) and a key / menu entry to switch between default / custom keys or a different # anchor?
Blueprint information
- Status:
- Complete
- Approver:
- None
- Priority:
- Medium
- Drafter:
- Egor Zindy
- Direction:
- Approved
- Assignee:
- Hannes Hochreiner
- Definition:
- Approved
- Series goal:
- None
- Implementation:
- Implemented
- Milestone target:
- 1.3.0
- Started by
- Hannes Hochreiner
- Completed by
- Hannes Hochreiner
Whiteboard
On way we could probably handle this in code would be to set up a dictionary where the letters (or constants for special keys) are the keys and constants referring to actions (e.g. "SHOW_NEXT_SLIDE") are the values. A python script add a new script node where the dictionary is set up or edit the dictionary in an existing script node. The JessyInk script would then "only" have to translate key codes to letters, look up the action in the dictionary and execute it.