cherry-markdown icon indicating copy to clipboard operation
cherry-markdown copied to clipboard

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

Open xuliuzhu1834 opened this issue 1 year ago • 1 comments

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 avatar Sep 27 '24 09:09 xuliuzhu1834

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

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

xuliuzhu1834 avatar Sep 29 '24 07:09 xuliuzhu1834

已修复,可以安装最新版(v0.10.1)进行体验哈

sunsonliu avatar Oct 22 '25 06:10 sunsonliu