Skip to content

Feature/keyboard shortcuts#75

Merged
ylebre merged 18 commits intomainfrom
feature/keyboardShortcuts
Jun 20, 2025
Merged

Feature/keyboard shortcuts#75
ylebre merged 18 commits intomainfrom
feature/keyboardShortcuts

Conversation

@Hoxolotl
Copy link
Copy Markdown
Contributor

@Hoxolotl Hoxolotl commented Jun 6, 2025

Proposal to add keyboard shortcuts.

@Hoxolotl Hoxolotl requested a review from ylebre June 6, 2025 13:36
let replacements = {
"componentPreview" : data,
"actions" : editor.transformers.simplyPreviewActions.render(editor.pageData.app.actions ?? []),
"shortcuts" : editor.transformers.simplyPreviewActions.render(editor.pageData.app.shortcuts ?? []),
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be simplyPreviewShortcuts.render

Comment thread components/previews/transformers/simplyPreviewFullApp-render.js Outdated
Comment thread components/previews/transformers/simplyPreviewPage-render.js Outdated
Copy link
Copy Markdown
Contributor

@ylebre ylebre left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good start! I've added a few pointers where another transformer should be called, and I do not see that transformer in the code yet.

The data-format component also has to receive extra handling for shortcuts in order to save/load them using the 'new' format (to make each shortcut into their own js file) - this is similar to the actions.

@ylebre ylebre self-requested a review June 20, 2025 13:34
@ylebre ylebre merged commit 2027a2e into main Jun 20, 2025
@ylebre ylebre mentioned this pull request Jul 5, 2025
@ylebre ylebre deleted the feature/keyboardShortcuts branch July 10, 2025 07:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants