mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-02-24 16:14:01 +08:00
fix(composer): Dedupe registered key bindings to avoid double undo in composer
This commit is contained in:
parent
1e7dfea7d7
commit
6df14d5553
1 changed files with 3 additions and 1 deletions
|
@ -181,7 +181,9 @@ export default class KeymapManager {
|
|||
if (!this._commandsCache[keystrokes]) {
|
||||
this._commandsCache[keystrokes] = [];
|
||||
}
|
||||
this._commandsCache[keystrokes].push(command);
|
||||
if (!this._commandsCache[keystrokes].includes(command)) {
|
||||
this._commandsCache[keystrokes].push(command);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue