shithub: npe

Download patch

ref: f69141f76fffc01b11e8c2c74424a8f7a1501fae
parent: db5ef81d558feebfdbf009e3acf087f649403c6d
author: Jacob Moody <moody@posixcafe.org>
date: Tue Feb 7 00:40:47 EST 2023

set state for key event

--- a/libnpe_sdl2/events.c
+++ b/libnpe_sdl2/events.c
@@ -122,6 +122,7 @@
 			e->key.repeat = t == Rrepeat;
 			e->key.keysym.scancode = rune2scancode(rune);
 			e->key.keysym.sym = rune;
+			e->key.state = e->type;
 			return 1;
 		}
 		break;