filter input while workshop form is open
[carveJwlIkooP6JGAAIwe30JlM.git] / input.h
diff --git a/input.h b/input.h
index 131ab8c031fccbc4affe35081517ba7cdddd3d2d..337782420c932ff4d2b9e0729709b73b7e86b402 100644 (file)
--- a/input.h
+++ b/input.h
@@ -187,7 +187,8 @@ struct {
 static srinput;
 
 static int input_filter_generic(void){
-   if( srinput.state != k_input_state_enabled || vg_console.enabled )
+   if( (srinput.state != k_input_state_enabled) || vg_console.enabled ||
+       (workshop_form.page != k_workshop_form_hidden)  )
       return 1;
    else 
       return 0;