Closed johnjacobkenny closed 4 years ago
Hi @johnjacobkenny. No, I think you're right: that's not expected behavior.
Any contributions are welcome!
A quick search brought me to an SO page. Here are the three options that are suggested, which do you suggest would be optimal?
Menu.setApplicationMenu(null)
// would remove default application menubrowserWindow.setMenu(null)
// would remove menu for the current windowglobalShortcut.register("CommandOrControl+W", callback)
// would capture the specific key combo and do nothing@johnjacobkenny,
Here are the three options that are suggested, which do you suggest would be optimal?
The second option, using the setMenu
method, is probably the simplest and most straight-forward. We don't use any other default menu items, so removing it shouldn't be an issue.
Today I unknowingly pressed
Ctrl+W
when pomotroid was active. I'm on Linux using the AppImage. It closed (as you would expect a browser tab to close).However for an app like this, I don't think that is an expected behavior? What do you folks think?
If this behavior can/should be changed, I would like to contribute. :smiley: