File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 1515import { IKeyboardLayout } from './core' ;
1616export { IKeyboardLayout , KeycodeLayout } from './core' ;
1717
18+ export { EN_US } from './layouts' ;
1819import { EN_US } from './layouts' ;
19- export * from './layouts' ;
20+ import * as Layouts from './layouts' ;
21+
22+ export const KeyboardLayouts = Object . values ( Layouts ) ;
2023
2124/**
2225 * 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';
1111
1212import {
1313 EN_US ,
14- FR_FR ,
1514 getKeyboardLayout ,
15+ KeyboardLayouts ,
1616 KeycodeLayout ,
17- NB_NO ,
1817 setKeyboardLayout
1918} from '@lumino/keyboard' ;
2019
20+ const FR_FR = KeyboardLayouts . find ( layout => layout . name === 'fr-FR' ) ;
21+ const NB_NO = KeyboardLayouts . find ( layout => layout . name === 'nb-NO' ) ;
22+
2123describe ( '@lumino/keyboard' , ( ) => {
2224 describe ( 'getKeyboardLayout()' , ( ) => {
2325 it ( 'should return the global keyboard layout' , ( ) => {
You can’t perform that action at this time.
0 commit comments