bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#47731: 28.0.50; Switching frame via keyboard does not fire focus cha


From: Lars Ingebrigtsen
Subject: bug#47731: 28.0.50; Switching frame via keyboard does not fire focus change event
Date: Thu, 06 May 2021 11:54:10 +0200
User-agent: Gnus/5.13 (Gnus v5.13) Emacs/28.0.50 (gnu/linux)

Sean Farley <sean@farley.io> writes:

> Here is some testing code:
> (defun test--focus-out ()
>   (message "FOCUS TEST"))
>
> (add-function :after after-focus-change-function #'test--focus-out)
> (make-frame)
>
> On macOS, this code runs fine if you click on the other frame. But if
> using the keyboard shortcut Command-` the event doesn't fire. It seems
> to be some interaction in the keydown event function where emacs_event
> is cleared before the call to windowDidBecomeKey.

I haven't tested the recipe, but perhaps Alan has some comments here
(added to the CCs).

-- 
(domestic pets only, the antidote for overdose, milk.)
   bloggy blog: http://lars.ingebrigtsen.no





reply via email to

[Prev in Thread] Current Thread [Next in Thread]