win32: fix key-release events
original commit: 3aad886019653bbabefe07b04385d9fd153bcaef
This commit is contained in:
parent
5cc99c019d
commit
d1d4a77960
|
@ -215,12 +215,13 @@
|
|||
(if just-check?
|
||||
#t
|
||||
(let* ([id (if (number? id) (integer->char id) id)]
|
||||
[key-id (if (equal? id #\033)
|
||||
'escape
|
||||
id)]
|
||||
[e (new key-event%
|
||||
[key-code (if is-up?
|
||||
'release
|
||||
(if (equal? id #\033)
|
||||
'escape
|
||||
id))]
|
||||
key-id)]
|
||||
[shift-down shift-down?]
|
||||
[control-down control-down?]
|
||||
[meta-down #f]
|
||||
|
@ -229,5 +230,7 @@
|
|||
[y 0]
|
||||
[time-stamp 0]
|
||||
[caps-down caps-down?])])
|
||||
(when is-up?
|
||||
(send e set-key-release-code key-id))
|
||||
e))))))
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user