Wired quit keybinding and fullscreen toggle binding
This commit is contained in:
@@ -1,5 +1,13 @@
|
||||
export const Keybindings: Array<{}> = [
|
||||
{
|
||||
name: "quit",
|
||||
bindKey: {win: "Ctrl-q", mac: "Ctrl-q"},
|
||||
readOnly: false
|
||||
}, {
|
||||
name: "toggleFullScreen",
|
||||
bindKey: {win: "F11", mac: "F11"},
|
||||
readOnly: false
|
||||
}, {
|
||||
name: "showSettingsMenu",
|
||||
bindKey: {win: "Ctrl-Shift-m", mac: "Ctrl-Shift-m"},
|
||||
readOnly: false
|
||||
|
@@ -54,6 +54,14 @@ export class NewtonEditorBase {
|
||||
this.editor.session.destroy();
|
||||
}
|
||||
|
||||
protected quit() {
|
||||
window.main.quit();
|
||||
}
|
||||
|
||||
protected toggleFullScreen() {
|
||||
window.main.toggleFullScreen();
|
||||
}
|
||||
|
||||
protected openFiles() {
|
||||
let startDir = "";
|
||||
if (this.activeFile) {
|
||||
|
@@ -20,6 +20,8 @@ declare global {
|
||||
},
|
||||
main: {
|
||||
onMenuActions: (arg0: any) => Promise<string>,
|
||||
quit: any,
|
||||
toggleFullScreen: any,
|
||||
},
|
||||
fs: {
|
||||
getLspConfigData: () => Promise<string>,
|
||||
|
Reference in New Issue
Block a user