There is currently kind of a mess with shortcuts, menu and context-menu This ticket is to layout the possible ways we can fix/refactor the code dealing with this thing.
Shortcuts
Some shortcuts like "toggle full screen", "toggle developer tools" and "reload" do not work in the packaged version until you add an application menu (pointed to me by the ember-electron creator here https://github.com/felixrieseberg/ember-electron/issues/75).
In order to make those shortcuts work we have some options:
Add an application menu (I like this the least as it changes completely the look of the app by having an extra menu on top of the nav bar)
On top of adding the shortcuts we could add our own menu in the navbar, and triggering different actions that will act upon the window: For example requireNode('remote').getCurrentWindow().toggleDevTools(); to toggle dev tools
Context Menu
The context menu event is supposed to work from the main process (electron.js) but this wasn't working (see #26) after packaging. Currently I added an ugly hack of adding an event listener within the app route (for some reason it works within the rendered process with remote).
Some options
This might be a bug in ember-electron (context-menu works on the main process with the quick-start project after packaging) in which case a fix over there is needed. Here is the ticket https://github.com/felixrieseberg/ember-electron/issues/71
There is currently kind of a mess with shortcuts, menu and context-menu This ticket is to layout the possible ways we can fix/refactor the code dealing with this thing.
Shortcuts
Some shortcuts like "toggle full screen", "toggle developer tools" and "reload" do not work in the packaged version until you add an application menu (pointed to me by the ember-electron creator here https://github.com/felixrieseberg/ember-electron/issues/75).
In order to make those shortcuts work we have some options:
requireNode('remote').getCurrentWindow().toggleDevTools();
to toggle dev toolsContext Menu
The context menu event is supposed to work from the main process (electron.js) but this wasn't working (see #26) after packaging. Currently I added an ugly hack of adding an event listener within the app route (for some reason it works within the rendered process with remote).
Some options
Also, limit options in context menu to editing stuff (copy/paste/undo/redo, etc.) and put stuff like toggle dev tools and full screen in main menu