mirror of
https://github.com/airstruck/luigi.git
synced 2026-01-09 15:58:22 +00:00
shortcuts treat lgui/rgui as ctrl key
This commit is contained in:
@@ -21,7 +21,7 @@ end
|
|||||||
|
|
||||||
function Input:getModifierFlags ()
|
function Input:getModifierFlags ()
|
||||||
local alt = Backend.isKeyDown('lalt', 'ralt') and 1 or 0
|
local alt = Backend.isKeyDown('lalt', 'ralt') and 1 or 0
|
||||||
local ctrl = Backend.isKeyDown('lctrl', 'rctrl') and 2 or 0
|
local ctrl = Backend.isKeyDown('lctrl', 'rctrl', 'lgui', 'rgui') and 2 or 0
|
||||||
local shift = Backend.isKeyDown('lshift', 'rshift') and 4 or 0
|
local shift = Backend.isKeyDown('lshift', 'rshift') and 4 or 0
|
||||||
|
|
||||||
return alt + ctrl + shift
|
return alt + ctrl + shift
|
||||||
|
|||||||
Reference in New Issue
Block a user