Merge pull request #496 from mstiles92/fix-470

Fix terminal search box losing focus in auto mode. Fixes #470
This commit is contained in:
Chris 2014-11-26 06:43:09 -08:00
commit 1b416ac596

View file

@ -345,7 +345,12 @@ public class GuiMEMonitorable extends AEBaseMEGui implements ISortSource, IConfi
@Override @Override
protected void mouseClicked(int xCoord, int yCoord, int btn) protected void mouseClicked(int xCoord, int yCoord, int btn)
{ {
searchField.mouseClicked( xCoord, yCoord, btn ); Enum searchMode = AEConfig.instance.settings.getSetting( Settings.SEARCH_MODE );
if ( searchMode != SearchBoxMode.AUTOSEARCH && searchMode != SearchBoxMode.NEI_AUTOSEARCH )
{
searchField.mouseClicked( xCoord, yCoord, btn );
}
if ( btn == 1 && searchField.isMouseIn( xCoord, yCoord ) ) if ( btn == 1 && searchField.isMouseIn( xCoord, yCoord ) )
{ {