Skip to content

Commit

Permalink
add _luminoEvent to args
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewfulton9 committed Oct 27, 2023
1 parent 08c1829 commit 94afbcf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/commands/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -613,7 +613,7 @@ export class CommandRegistry {
*/
private _executeKeyBinding(binding: CommandRegistry.IKeyBinding): void {
let { command, args } = binding;
let newArgs = { ...args, isKeybinding: true };
let newArgs: ReadonlyPartialJSONObject = {_luminoEvent: { type: "keybinding", keys: binding.keys }, ...args};
if (!this.hasCommand(command) || !this.isEnabled(command, newArgs)) {
let word = this.hasCommand(command) ? 'enabled' : 'registered';
let keys = binding.keys.join(', ');
Expand Down

0 comments on commit 94afbcf

Please sign in to comment.