File tree 2 files changed +8
-3
lines changed
2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 15
15
import { IKeyboardLayout } from './core' ;
16
16
export { IKeyboardLayout , KeycodeLayout } from './core' ;
17
17
18
+ export { EN_US } from './layouts' ;
18
19
import { EN_US } from './layouts' ;
19
- export * from './layouts' ;
20
+ import * as Layouts from './layouts' ;
21
+
22
+ export const KeyboardLayouts = Object . values ( Layouts ) ;
20
23
21
24
/**
22
25
* Get the global application keyboard layout instance.
Original file line number Diff line number Diff line change @@ -11,13 +11,15 @@ import { expect } from 'chai';
11
11
12
12
import {
13
13
EN_US ,
14
- FR_FR ,
15
14
getKeyboardLayout ,
15
+ KeyboardLayouts ,
16
16
KeycodeLayout ,
17
- NB_NO ,
18
17
setKeyboardLayout
19
18
} from '@lumino/keyboard' ;
20
19
20
+ const FR_FR = KeyboardLayouts . find ( layout => layout . name === 'fr-FR' ) ;
21
+ const NB_NO = KeyboardLayouts . find ( layout => layout . name === 'nb-NO' ) ;
22
+
21
23
describe ( '@lumino/keyboard' , ( ) => {
22
24
describe ( 'getKeyboardLayout()' , ( ) => {
23
25
it ( 'should return the global keyboard layout' , ( ) => {
You can’t perform that action at this time.
0 commit comments