Skip to content

Commit a13516c

Browse files
author
Akos Kitta
committed
Got rid of the accelarator customization.
It works with latest Theia and the electron version we use. Signed-off-by: Akos Kitta <[email protected]>
1 parent 4f58675 commit a13516c

File tree

1 file changed

+0
-13
lines changed

1 file changed

+0
-13
lines changed

arduino-ide-extension/src/electron-browser/theia/core/electron-main-menu-factory.ts

-13
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { injectable } from '@theia/core/shared/inversify';
22
import * as remote from '@theia/core/electron-shared/@electron/remote';
33
import { isOSX } from '@theia/core/lib/common/os';
4-
import { Keybinding } from '@theia/core/lib/common/keybinding';
54
import {
65
CompositeMenuNode,
76
MAIN_MENU_BAR,
@@ -65,18 +64,6 @@ export class ElectronMainMenuFactory extends TheiaElectronMainMenuFactory {
6564
return template;
6665
}
6766

68-
protected acceleratorFor(keybinding: Keybinding): string {
69-
// TODO: https://github.com/eclipse-theia/theia/issues/8207
70-
return this.keybindingRegistry
71-
.resolveKeybinding(keybinding)
72-
.map((binding) =>
73-
this.keybindingRegistry.acceleratorForKeyCode(binding, '+')
74-
)
75-
.join('')
76-
.replace('←', 'Left')
77-
.replace('→', 'Right');
78-
}
79-
8067
protected createOSXMenu(): Electron.MenuItemConstructorOptions {
8168
const { submenu } = super.createOSXMenu();
8269
const label = 'Arduino IDE';

0 commit comments

Comments
 (0)