Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 4184b05

Browse files
author
Akos Kitta
committedSep 21, 2022
Listen on keyboard layout changes from the OS.
Closes #989 Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
1 parent 42f6f43 commit 4184b05

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

Lines changed: 5 additions & 0 deletions
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)
Please sign in to comment.