File tree 1 file changed +8
-11
lines changed
1 file changed +8
-11
lines changed Original file line number Diff line number Diff line change @@ -29,9 +29,6 @@ import { ISignal, Signal } from '@lumino/signaling';
29
29
30
30
import { VirtualElement } from '@lumino/virtualdom' ;
31
31
32
-
33
-
34
-
35
32
/**
36
33
* An object which manages a collection of commands.
37
34
*
@@ -1256,7 +1253,7 @@ export namespace CommandRegistry {
1256
1253
export function keystrokeForKeydownEvent ( event : KeyboardEvent ) : string {
1257
1254
let layout = getKeyboardLayout ( ) ;
1258
1255
let key = layout . keyForKeydownEvent ( event ) ;
1259
- let mods = [ ]
1256
+ let mods = [ ] ;
1260
1257
1261
1258
if ( event . ctrlKey ) {
1262
1259
mods . push ( 'Ctrl' ) ;
@@ -1275,17 +1272,17 @@ export namespace CommandRegistry {
1275
1272
}
1276
1273
1277
1274
// Handle the edge cases
1278
-
1275
+
1279
1276
// 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
+ }
1283
1280
1284
1281
// Handle the edge case for triggering the Alt key binding
1285
1282
if ( mods . length === 1 && mods [ 0 ] === 'Alt' ) {
1286
- return " Alt" + ' '
1287
- }
1288
-
1283
+ return ' Alt' + ' ' ;
1284
+ }
1285
+
1289
1286
return mods . join ( ' ' ) ;
1290
1287
}
1291
1288
}
You can’t perform that action at this time.
0 commit comments