Tencent / cherry-markdown

✨ A Markdown Editor
Other
3.52k stars 412 forks source link

[Bug Report]0.8.48快捷键设置不生效 #929

Open xuliuzhu1834 opened 1 week ago

xuliuzhu1834 commented 1 week ago

Prerequisites

Describe the Bug

demo中的加粗快捷键都是失效的, 似乎Control + any 都不生效

shortcutKeySettings: {
      /** 是否替换已有的快捷键, true: 替换默认快捷键; false: 会追加到默认快捷键里,相同的shortcutKey会覆盖默认的 */
      isReplace: false,
      shortcutKeyMap: {
        'Alt-Digit1': {
          hookName: 'header',
          aliasName: '标题',
        },
      // 这里不生效,实践中,设置Control-KeyS同样没效果
        'Control-Shift-KeyX': {
          hookName: 'bold',
          aliasName: '加粗',
        },
      },
    }

Reproduction Steps

No response

System Information

No response

Contributing

No, I don't plan to at this time.

xuliuzhu1834 commented 1 week ago

debug 了一下, 用 Meta-Shift-KeyX是生效的。。。

这个算不算BUG? Control 必须用 Meta