Skip to content

Commit

Permalink
fix(x6-plugin-keyboard): triggerKey should use formatKey before call …
Browse files Browse the repository at this point in the history
…mousetrap
  • Loading branch information
phiwyc committed Oct 24, 2024
1 parent 6437549 commit ba71825
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/x6-plugin-keyboard/src/keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,7 @@ export class KeyboardImpl extends Disposable implements IDisablable {
}

trigger(key: string, action?: KeyboardImpl.Action) {
this.mousetrap.trigger(key, action)
this.mousetrap.trigger(this.formatkey(key), action)
}

private focus(e: EventArgs['node:mouseup']) {
Expand Down

0 comments on commit ba71825

Please sign in to comment.