Clicking on empty space only clears the selection if modifiers aren't held. Fixes #1561.
This was SVN commit r12221.
This commit is contained in:
parent
467195e712
commit
16ef74d9fe
@ -1116,8 +1116,11 @@ function handleInputAfterGui(ev)
|
||||
var ents = Engine.PickEntitiesAtPoint(ev.x, ev.y);
|
||||
if (!ents.length)
|
||||
{
|
||||
g_Selection.reset();
|
||||
resetIdleUnit();
|
||||
if (!Engine.HotkeyIsPressed("selection.add") && !Engine.HotkeyIsPressed("selection.remove"))
|
||||
{
|
||||
g_Selection.reset();
|
||||
resetIdleUnit();
|
||||
}
|
||||
inputState = INPUT_NORMAL;
|
||||
return true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user