Skip to content

Commit b75b614

Browse files
authored
electron: listen to keyboard layout changes (#11689)
The contribution responsible for listening to keyboard changes in Electron wasn't bound/used. Bind the `ElectronNativeKeymap` contribution. Signed-off-by: Akos Kitta <[email protected]>
1 parent 523fbbf commit b75b614

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

packages/core/src/electron-main/electron-main-application-module.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ import { ElectronMessagingService } from './messaging/electron-messaging-service
2727
import { ElectronConnectionHandler } from '../electron-common/messaging/electron-connection-handler';
2828
import { ElectronSecurityTokenService } from './electron-security-token-service';
2929
import { TheiaBrowserWindowOptions, TheiaElectronWindow, TheiaElectronWindowFactory, WindowApplicationConfig } from './theia-electron-window';
30+
import { ElectronNativeKeymap } from './electron-native-keymap';
3031

3132
const electronSecurityToken: ElectronSecurityToken = { value: v4() };
3233
// eslint-disable-next-line @typescript-eslint/no-explicit-any
@@ -59,4 +60,7 @@ export default new ContainerModule(bind => {
5960
child.bind(WindowApplicationConfig).toConstantValue(config);
6061
return child.get(TheiaElectronWindow);
6162
});
63+
64+
bind(ElectronNativeKeymap).toSelf().inSingletonScope();
65+
bind(ElectronMainApplicationContribution).toService(ElectronNativeKeymap);
6266
});

0 commit comments

Comments
 (0)