1
0
mirror of https://github.com/LDDestroier/CC/ synced 2025-09-01 18:38:00 +00:00

Fixed vertical workspace swapping

This commit is contained in:
LDDestroier
2019-04-23 17:11:19 -04:00
committed by GitHub
parent aae0e44a31
commit d416695866

View File

@@ -729,6 +729,9 @@ local main = function()
if keysDown[keys.up] then
if instances[focus[2] - 1] then
if instances[focus[2] - 1][focus[1]] then
if keysDown[swapKey] then
swapInstances(0, -1)
end
focus[2] = focus[2] - 1
scroll[2] = scroll[2] + 1
keysDown[keys.up] = false
@@ -741,6 +744,9 @@ local main = function()
if keysDown[keys.down] then
if instances[focus[2] + 1] then
if instances[focus[2] + 1][focus[1]] then
if keysDown[swapKey] then
swapInstances(0, 1)
end
focus[2] = focus[2] + 1
scroll[2] = scroll[2] - 1
keysDown[keys.down] = false