Fixed a bug were incorrect UI controls were taking focus.

This commit is contained in:
Justin Marshall
2020-06-04 08:38:37 -07:00
parent 36a8e28afe
commit f90152155d
+3
View File
@@ -201,6 +201,9 @@ int GadgetClass::Clicked_On(KeyNumType & key, unsigned flags, int mousex, int mo
*/
flags &= Flags;
if (mousex - X < 0 || mousey - Y < 0)
return false;
/*
** If keyboard input should be processed by this "gadget" and keyboard input is
** detected, then always call the action function. It is up to the action function