branch: externals/which-key
commit 2b10b8e77dc53f4d88191ac6e6675ecf1f1ccc63
Author: Justin Burkett <jus...@burkett.cc>
Commit: Justin Burkett <jus...@burkett.cc>

    Remove use of focus-{in,out}-hook
    
    Fix #259 #260 #262
---
 which-key.el | 4 ----
 1 file changed, 4 deletions(-)

diff --git a/which-key.el b/which-key.el
index 6eb8e35..c08cfd8 100644
--- a/which-key.el
+++ b/which-key.el
@@ -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))
@@ -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)))

Reply via email to