diff --git a/src/engine.c b/src/engine.c index 8c8cbfe0..e3501e07 100644 --- a/src/engine.c +++ b/src/engine.c @@ -691,6 +691,13 @@ void Main_handler(void) { if (Is_shortcut(Key,key_index)) { + if (preview_is_visible) + { + int x = Mouse_K; + Close_popup(); + Mouse_K = x; // Close_popup waits for end of click and resets Mouse_K... + preview_is_visible = 0; + } // Special keys (functions not hooked to a UI button) switch(key_index) { @@ -1308,13 +1315,27 @@ void Main_handler(void) for (button_index=0;button_index