Right-click exits selection without waiting for button up

This fixes https://github.com/kichikuou/xsystem35-sdl2/issues/56.
This commit is contained in:
kichikuou
2024-06-18 13:17:53 +09:00
parent 875b233f32
commit eeeab6e054
+3 -1
View File
@@ -460,7 +460,9 @@ void sel_select() {
while (!nact->is_quit) {
key = sys_keywait(25, KEYWAIT_CANCELABLE);
if (!key && prevkey == SYS35KEY_SPC) break;
// Right-click exits the menu without waiting for button up.
if (key == SYS35KEY_SPC) break;
if (!key && prevkey == SYS35KEY_RET && curElement != -1) break;
prevkey = key;