loop: fix capture for key_release
This commit is contained in:
parent
25b145a569
commit
b513fff3b4
1 changed files with 1 additions and 1 deletions
|
@ -213,7 +213,7 @@ pub fn handleEventGeneric(self: anytype, vx: *Vaxis, cache: *GraphemeCache, Even
|
|||
return self.postEvent(.{ .key_press = mut_key });
|
||||
}
|
||||
},
|
||||
.key_release => |*key| {
|
||||
.key_release => |key| {
|
||||
if (@hasField(Event, "key_release")) {
|
||||
// HACK: yuck. there has to be a better way
|
||||
var mut_key = key;
|
||||
|
|
Loading…
Add table
Reference in a new issue