From 3565b1c7454df29e8721f9b770f78c76479e8d87 Mon Sep 17 00:00:00 2001 From: Sheppy Date: Thu, 15 Oct 2015 16:00:12 +0200 Subject: [PATCH] fixed from alt to ctrl --- Spring/AutoUnselect.lua | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Spring/AutoUnselect.lua b/Spring/AutoUnselect.lua index febcf24..e7fa19e 100644 --- a/Spring/AutoUnselect.lua +++ b/Spring/AutoUnselect.lua @@ -22,10 +22,11 @@ function widget:CommandNotify(cmdID, cmdParams, cmdOptions) local medium = {} local high = {} local deselect = 0 - local a = Spring.GetModKeyState() --alt ctrl ? shift , discard all but alt --do nothing if CTRL is pressed - Spring.Echo(Spring.GetModKeyState()) - if a then return end + local a,b,c,d = Spring.GetModKeyState() --alt ctrl ? shift , discard all but alt + --Spring.Echo(Spring.GetModKeyState()) + + if b then return end --iterate Selection for i=1,200 do if selected[i] == nil then break end