key event's position is gone: get-x and get-y
original commit: f0510efdc515f722000a1acc53a3c73d8df2cc26
This commit is contained in:
parent
69cd466150
commit
f58653aa29
|
@ -53,10 +53,9 @@
|
|||
(define setup-global-search-keymap
|
||||
(let* ([find-string
|
||||
(lambda (edit event . extras)
|
||||
(let ([x-box (box 0)]
|
||||
[y-box (box 0)]
|
||||
(let ([x-box (box (send event get-x))]
|
||||
[y-box (box (send event get-y))]
|
||||
[canvas (send event get-event-object)])
|
||||
(send event position x-box y-box)
|
||||
(send canvas client-to-screen x-box y-box)
|
||||
(mred:find-string:find-string canvas ()
|
||||
(- (unbox x-box) 30)
|
||||
|
|
Loading…
Reference in New Issue
Block a user