Skip to content

Commit 4184b05

Browse files
author
Akos Kitta
committed
Listen on keyboard layout changes from the OS.
Closes #989 Signed-off-by: Akos Kitta <[email protected]>
1 parent 42f6f43 commit 4184b05

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

Diff for: 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)