Greyed menu-item problem with zoomin and others


#1

Hi everybody !

Here’s my problem, i’ve greyed menu-item for togglefullscreen, zoomin, zoomout, resetzoom.
Do you know a way to make them work ? Thanks a lot !

Here’s my code (zoom and minimize work):

{
        label: "Maximiser / Minimiser",
        accelerator: 'CmdOrCtrl+M',
        role: 'zoom',
      },
      {
        label: "Afficher en plein écran",
        accelerator: 'CmdOrCtrl+Shift+F',
        role: 'togglefullscreen',
      },
      {
        type: 'separator'
      },
      {
        label: 'Zoom avant',
        accelerator: 'CmdOrCtrl+Plus',
        role: 'zoomin',
        enabled: true,
      },
      {
        label: "Zoom arrière",
        accelerator: 'CmdOrCtrl+-',
        role: 'zoomout',
      },
      {
        label: 'Zoom par défaut',
        accelerator: 'CmdOrCtrl+0',
        role: 'resetzoom',
      },
      {
        label: "Réduire",
        accelerator: 'CmdOrCtrl+M',
        role: 'minimize'
      },