Skip to content

Commit 2167496

Browse files
committed
Run prettier
1 parent 6cfdf12 commit 2167496

File tree

1 file changed

+8
-11
lines changed

1 file changed

+8
-11
lines changed

packages/commands/src/index.ts

+8-11
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@ import { ISignal, Signal } from '@lumino/signaling';
2929

3030
import { VirtualElement } from '@lumino/virtualdom';
3131

32-
33-
34-
3532
/**
3633
* An object which manages a collection of commands.
3734
*
@@ -1256,7 +1253,7 @@ export namespace CommandRegistry {
12561253
export function keystrokeForKeydownEvent(event: KeyboardEvent): string {
12571254
let layout = getKeyboardLayout();
12581255
let key = layout.keyForKeydownEvent(event);
1259-
let mods = []
1256+
let mods = [];
12601257

12611258
if (event.ctrlKey) {
12621259
mods.push('Ctrl');
@@ -1275,17 +1272,17 @@ export namespace CommandRegistry {
12751272
}
12761273

12771274
// Handle the edge cases
1278-
1275+
12791276
// Handle the edge case for triggering the Alt Shift key binding
1280-
if (mods.length === 2 && (mods[0] === 'Alt' && mods[1] === 'Shift')) {
1281-
return "Alt" + ' ' + "Shift" + ' '
1282-
}
1277+
if (mods.length === 2 && mods[0] === 'Alt' && mods[1] === 'Shift') {
1278+
return 'Alt' + ' ' + 'Shift' + ' ';
1279+
}
12831280

12841281
// Handle the edge case for triggering the Alt key binding
12851282
if (mods.length === 1 && mods[0] === 'Alt') {
1286-
return "Alt" + ' '
1287-
}
1288-
1283+
return 'Alt' + ' ';
1284+
}
1285+
12891286
return mods.join(' ');
12901287
}
12911288
}

0 commit comments

Comments
 (0)