Skip to content

Commit

Permalink
preload: Update reason for using dom listeners.
Browse files Browse the repository at this point in the history
  • Loading branch information
kanishk98 committed Dec 9, 2019
1 parent 2678a5f commit cc43143
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/renderer/js/preload.ts
Original file line number Diff line number Diff line change
Expand Up @@ -133,7 +133,8 @@ window.addEventListener('load', (event: any): void => {

// electron's globalShortcut can cause unexpected results
// so adding the reload shortcut in the old-school way
// Zoom from numpad keys is not supported by electron, so adding it through listeners.
// electron does not support adding multiple accelerators for a menu item
// so adding numpad shortcuts here
document.addEventListener('keydown', event => {
const cmdOrCtrl = event.ctrlKey || event.metaKey;
if (event.code === 'F5') {
Expand Down

0 comments on commit cc43143

Please sign in to comment.