cocoa: fix problem with dispatching key-up events
Closes PR 11635 Merge to 5.1
This commit is contained in:
parent
f7fd6ee689
commit
152c636e1c
|
@ -58,7 +58,12 @@
|
||||||
(and r
|
(and r
|
||||||
(begin
|
(begin
|
||||||
(parameterize ([recurring-for-command #t])
|
(parameterize ([recurring-for-command #t])
|
||||||
(tell r keyDown: evt))
|
(let ([evt-type (tell #:type _NSInteger evt type)])
|
||||||
|
(cond
|
||||||
|
[(= NSKeyDown evt-type)
|
||||||
|
(tell r keyDown: evt)]
|
||||||
|
[(= NSKeyUp evt-type)
|
||||||
|
(tell r keyUp: evt)])))
|
||||||
#t)))))))))
|
#t)))))))))
|
||||||
|
|
||||||
(define cocoa-mb (tell (tell MyBarMenu alloc) init))
|
(define cocoa-mb (tell (tell MyBarMenu alloc) init))
|
||||||
|
|
Loading…
Reference in New Issue
Block a user