racket/gui cocoa: avoid focus-setting loop
original commit: fd8bde94da1efb2195bbeeb55ad3c9936a5962d7
This commit is contained in:
parent
cc4aee8e82
commit
b9fc735602
|
@ -466,11 +466,11 @@
|
|||
(define/override (is-responder wx on?)
|
||||
(unless (and (not on?)
|
||||
(not (eq? first-responder wx)))
|
||||
(unless on?
|
||||
(tellv cocoa makeFirstResponder: #f))
|
||||
(if on?
|
||||
(set! first-responder wx)
|
||||
(set! first-responder #f))
|
||||
(unless on?
|
||||
(tellv cocoa makeFirstResponder: #f))
|
||||
(when is-main?
|
||||
(do-notify-responder wx on?))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user