diff --git a/index.js b/index.js index 060147a..b0b0569 100644 --- a/index.js +++ b/index.js @@ -185,8 +185,7 @@ function register(win, accelerator, callback) { if ((registeringAppShortcut && appHasFocus) || (registeringWindowHasFocus && !registeringWindowIsMinimized())) { - win.on('show', _register('the window was focused at shortcut registration.')); - _register(); + _register('the window was focused at shortcut registration.'); } }