Skip to content

Commit

Permalink
Remove use of focus-{in,out}-hook
Browse files Browse the repository at this point in the history
  • Loading branch information
justbur committed Sep 2, 2020
1 parent e554326 commit 2b10b8e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions which-key.el
Expand Up @@ -815,8 +815,6 @@ problems at github. If DISABLE is non-nil disable support."
(when which-key-show-remaining-keys
(add-hook 'pre-command-hook #'which-key--lighter-restore))
(add-hook 'pre-command-hook #'which-key--hide-popup)
(add-hook 'focus-out-hook #'which-key--stop-timer)
(add-hook 'focus-in-hook #'which-key--start-timer)
(add-hook 'window-size-change-functions
'which-key--hide-popup-on-frame-size-change)
(which-key--start-timer))
Expand All @@ -826,8 +824,6 @@ problems at github. If DISABLE is non-nil disable support."
(when which-key-show-remaining-keys
(remove-hook 'pre-command-hook #'which-key--lighter-restore))
(remove-hook 'pre-command-hook #'which-key--hide-popup)
(remove-hook 'focus-out-hook #'which-key--stop-timer)
(remove-hook 'focus-in-hook #'which-key--start-timer)
(remove-hook 'window-size-change-functions
'which-key--hide-popup-on-frame-size-change)
(which-key--stop-timer)))
Expand Down

0 comments on commit 2b10b8e

Please sign in to comment.