Skip to content

Commit 707f3be

Browse files
Akos Kittakittaakos
Akos Kitta
authored andcommitted
Listen on keyboard layout changes from the OS.
Closes #989 Signed-off-by: Akos Kitta <[email protected]>
1 parent 8783952 commit 707f3be

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

arduino-ide-extension/src/electron-main/arduino-electron-main-module.ts

+5
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@ import { IDEUpdaterImpl } from './ide-updater/ide-updater-impl';
1818
import { ElectronMainApplication } from './theia/electron-main-application';
1919
import { ElectronMainWindowServiceImpl } from './theia/electron-main-window-service';
2020
import { TheiaElectronWindow } from './theia/theia-electron-window';
21+
import { ElectronNativeKeymap } from '@theia/core/lib/electron-main/electron-native-keymap';
2122

2223
export default new ContainerModule((bind, unbind, isBound, rebind) => {
2324
bind(ElectronMainApplication).toSelf().inSingletonScope();
@@ -58,4 +59,8 @@ export default new ContainerModule((bind, unbind, isBound, rebind) => {
5859
.inSingletonScope();
5960

6061
bind(IsTempSketch).toSelf().inSingletonScope();
62+
63+
// https://github.com/eclipse-theia/theia/issues/11688
64+
bind(ElectronNativeKeymap).toSelf().inSingletonScope();
65+
bind(ElectronMainApplicationContribution).toService(ElectronNativeKeymap);
6166
});

0 commit comments

Comments
 (0)