Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: 修复部分带shift的快捷键无效的问题 #629

Closed
wants to merge 1 commit into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix: 修复部分带shift的快捷键无效的问题
  • Loading branch information
ThunderYu committed May 31, 2024
commit 9991403a600c1a45d43129408eecca26b0d87f8c
4 changes: 2 additions & 2 deletions src/editor/core/shortcut/keys/listKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ import { IRegisterShortcut } from '../../../interface/shortcut/Shortcut'

export const listKeys: IRegisterShortcut[] = [
{
key: KeyMap.I,
key: KeyMap.I_UPPERCASE,
shift: true,
mod: true,
callback: (command: Command) => {
command.executeList(ListType.UL, ListStyle.DISC)
}
},
{
key: KeyMap.U,
key: KeyMap.U_UPPERCASE,
shift: true,
mod: true,
callback: (command: Command) => {
Expand Down
2 changes: 1 addition & 1 deletion src/editor/core/shortcut/keys/richtextKeys.ts
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ export const richtextKeys: IRegisterShortcut[] = [
}
},
{
key: KeyMap.J,
key: KeyMap.J_UPPERCASE,
mod: true,
shift: true,
callback: (command: Command) => {
Expand Down