sindresorhus / electron-debug

Adds useful debug features to your Electron app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Can't close devTools using the shortcut while it is focused

astoilkov opened this issue · comments

Steps to reproduce:

  • The default Electron menu should be replaced with a custom menu so the Toggle Dev Tools menu item doesn't exist
  • Open devTools
  • While devTools is focused click the shortcut for closing devTools

This can be replicated in Caprine where electron-debug is used.

I see two possible solutions for this problem:

  1. electron-localshortcut to not disable the shortcuts when devTools is focused
  2. add an option in electron-debug which adds a menu item - the menu item works when devTools is focused so this will fix the problem

I am not entirely sure why the shortcut for reloading the page works while devTools is focused. Maybe this could be the key to solving this issue.