Can't close devTools using the shortcut while it is focused
astoilkov opened this issue · comments
Antonio Stoilkov commented
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:
electron-localshortcut
to not disable the shortcuts when devTools is focused- 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.