mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-06-17 09:36:33 +00:00
Patched the Theia menu factory.
eclipse-theia/theia#8977 Signed-off-by: Akos Kitta <kittaakos@typefox.io>
This commit is contained in:
parent
14919bba1b
commit
f6b5dd24e2
@ -7,6 +7,11 @@ import { ArduinoMenus } from '../../../browser/menu/arduino-menus';
|
|||||||
@injectable()
|
@injectable()
|
||||||
export class ElectronMainMenuFactory extends TheiaElectronMainMenuFactory {
|
export class ElectronMainMenuFactory extends TheiaElectronMainMenuFactory {
|
||||||
|
|
||||||
|
createMenuBar(): Electron.Menu {
|
||||||
|
this._toggledCommands.clear(); // https://github.com/eclipse-theia/theia/issues/8977
|
||||||
|
return super.createMenuBar();
|
||||||
|
}
|
||||||
|
|
||||||
protected acceleratorFor(keybinding: Keybinding): string {
|
protected acceleratorFor(keybinding: Keybinding): string {
|
||||||
// TODO: https://github.com/eclipse-theia/theia/issues/8207
|
// TODO: https://github.com/eclipse-theia/theia/issues/8207
|
||||||
return this.keybindingRegistry.resolveKeybinding(keybinding)
|
return this.keybindingRegistry.resolveKeybinding(keybinding)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user