racket/gui win32: fix duplicate pre- events for controls
original commit: 7ddd99cf52c5476abead64a23bf441a21dd15507
This commit is contained in:
parent
ed25173112
commit
2eb1a30a2e
|
@ -30,8 +30,6 @@
|
||||||
(super-new)
|
(super-new)
|
||||||
|
|
||||||
(define/public (ctlproc w msg wParam lParam default)
|
(define/public (ctlproc w msg wParam lParam default)
|
||||||
(if (try-mouse w msg wParam lParam)
|
|
||||||
0
|
|
||||||
(cond
|
(cond
|
||||||
[(= msg WM_SETFOCUS)
|
[(= msg WM_SETFOCUS)
|
||||||
(queue-window-event this (lambda () (on-set-focus)))
|
(queue-window-event this (lambda () (on-set-focus)))
|
||||||
|
@ -40,7 +38,7 @@
|
||||||
(queue-window-event this (lambda () (on-kill-focus)))
|
(queue-window-event this (lambda () (on-kill-focus)))
|
||||||
(default w msg wParam lParam)]
|
(default w msg wParam lParam)]
|
||||||
[else
|
[else
|
||||||
(wndproc-for-ctlproc w msg wParam lParam default)])))
|
(wndproc-for-ctlproc w msg wParam lParam default)]))
|
||||||
|
|
||||||
(define/public (wndproc-for-ctlproc w msg wParam lParam default)
|
(define/public (wndproc-for-ctlproc w msg wParam lParam default)
|
||||||
(wndproc w msg wParam lParam default))))
|
(wndproc w msg wParam lParam default))))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user