Skip to content

Commit

Permalink
FIX: 順番が違う際に動作しない問題を修正
Browse files Browse the repository at this point in the history
  • Loading branch information
tsym77yoshi committed May 14, 2024
1 parent e9a14fb commit ddcb089
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/plugins/hotkeyPlugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -265,7 +265,8 @@ const combinationToBindingKey = (
): BindingKey => {
// MetaキーはCommandキーとして扱う
// NOTE: Metaキーは以前採用していたmousetrapがそうだった名残り
return combination as unknown as BindingKey;
// 順番が違うものも一致させるために並べ替え
return combination.split(" ").sort().join(" ") as BindingKey;
};

export const hotkeyPlugin: Plugin = {
Expand Down

0 comments on commit ddcb089

Please sign in to comment.