Skip to content

Commit

Permalink
fix: format keyboard arrow codes to Mousetrap special codes (#4065) (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
XueMeijing authored Jan 9, 2024
1 parent 1b031d5 commit 4641d39
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/x6-plugin-keyboard/src/keyboard.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,10 @@ export class KeyboardImpl extends Disposable implements IDisablable {
.replace(/\s/g, '')
.replace('delete', 'del')
.replace('cmd', 'command')
.replace('arrowup', 'up')
.replace('arrowright', 'right')
.replace('arrowdown', 'down')
.replace('arrowleft', 'left')

const formatFn = this.options.format
if (formatFn) {
Expand Down

0 comments on commit 4641d39

Please sign in to comment.