alex8088 / electron-toolkit

Toolkit for Electron
MIT License
121 stars 6 forks source link

CommandOrControl + Shift + R still works on production when using optimizer from @electron-toolkit/utils #6

Closed etorres1193 closed 10 months ago

etorres1193 commented 12 months ago

Describe the bug

I use optimzer from @electron-toolkit/utils

It only ignores CommandOrControl + R, but when I press CommandOrControl + Shift + R it still reloads the page.

  // Default open or close DevTools by F12 in development
  // and ignore CommandOrControl + R in production.
  // see https://github.com/alex8088/electron-toolkit/tree/master/packages/utils
  app.on('browser-window-created', (_, window) => {
    optimizer.watchWindowShortcuts(window)
  })

How can I avoid CommandOrControl + Shift + R?

Electron-Toolkit Version

^2.0.1

Electron Version

27.0.1

Validations

alex8088 commented 10 months ago

utils@3.0.0 is out!