mirror of
https://github.com/LDDestroier/CC/
synced 2025-04-07 19:16:39 +00:00
Fixed vertical workspace swapping
This commit is contained in:
parent
aae0e44a31
commit
d416695866
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user