cocoa: fix first-responder tracking when a frame is hidden

This commit is contained in:
Matthew Flatt 2011-01-27 19:19:43 -07:00
parent 2c0a034792
commit 2ab0d36738

View File

@ -392,6 +392,8 @@
(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))