AppFlowy-IO / AppFlowy-IO/AppFlowy

[Bug] Shortcuts shown in toolbar are not updated with custom keys

未关闭
#4,417 1 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
bug editor
主要语言
Dart
星标
76.6k
派生
6k
PR 合并指标
30 天内没有已合并 PR

描述

### Bug Description

Shortcuts shown in the editor's toolbar are not updated with custom keys set in AppFlowy app.

### How to Reproduce

1. Open a document
2. Change the shortcut of some editor command (ex: "Toggle Bold" from `ctrl+b` to `ctrl+/`)
3. Select some text in the editor and hover over the button to see the shortcut is still the same (ex: hover over "B" and see `ctrl+b` instead of the new shortcut)

### Expected Behavior

Should show the custom shortcut below the tooltip.

### Operating System

Linux

### AppFlowy Version(s)

Built from source

### Screenshots

[Screencast from 18-01-2024 15:16:00.webm](https://github.com/AppFlowy-IO/AppFlowy/assets/16005946/790b6287-5144-4480-b4e6-3a1763190192)

### Additional Context

The shortcut combination is hard coded: https://github.com/AppFlowy-IO/appflowy-editor/blob/main/lib/src/editor/toolbar/desktop/items/format_toolbar_items.dart#L9C18-L9C18

It should be updated with the custom one.

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。