feat(workflow): add keyboard shortcuts, shortcut editor, and cross-platform support#6400
Open
DurantChan1 wants to merge 1 commit into
Open
feat(workflow): add keyboard shortcuts, shortcut editor, and cross-platform support#6400DurantChan1 wants to merge 1 commit into
DurantChan1 wants to merge 1 commit into
Conversation
…atform support - Fix undo/redo: remove duplicate handlers (LogicFlow core already handles them) - Add Ctrl+S/Cmd+S save, Ctrl+Shift+D debug, Ctrl+Shift+P publish shortcuts - Add S key for box-select mode, H key for hand/point mode - Add Ctrl+=/- zoom in/out, Ctrl+0 fit view, Ctrl+[/] collapse/expand all - Add Ctrl+Shift+L auto-layout beautify, Ctrl+F node search - Create shortcut-config.ts for customizable keybindings (localStorage) - Create ShortcutEditor.vue dialog for viewing/editing all shortcuts - Add tooltip hints for all toolbar buttons and header buttons - Cross-platform Mac support: auto-detect and show Cmd/Ctrl appropriately - Share cursor mode state via provide/inject for toolbar button sync - Update i18n for zh-CN, zh-Hant, en-US with shortcut-related keys Co-Authored-By: Claude <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this PR does / why we need it?
该分支为 MaxKB 工作流编辑器增加了完整的键盘快捷键系统,覆盖应用工作流、知识库工作流和工具工作流三种类型。引入了可配置的快捷键映射系统、可视化快捷键编辑对话框、跨平台支持(macOS 修饰键 vs Windows/Linux),以及工具栏按钮上的快捷键提示 tooltip。同时支持框中选取 / 点选模式通过 S/H 键快速切换,并完成了中英文繁简体 i18n 国际化。
Summary of your change
新增文件:
修改文件:
应用/知识库/工具工作流视图 — 在调试/保存/发布按钮上增加 el-tooltip 提示快捷键。将 组件的 save、debug、publish 事件连接到父组件方法。在下拉菜单中新增"快捷键设置"入口,通过 shortcutEditorVisible v-model 打开 ShortcutEditor。
国际化(en-US、zh-CN、zh-Hant workflow.ts) — 新增 control.dragMode、control.clickMode 和完整的 shortcut.* 键位定义(11 个字段),包括标题、动作、快捷键、操作、按下提示、重置、恢复默认、刷新提示。
Please indicate you've done the following: