Use PLATFORM to detect macOS for key bindings
This commit is contained in:
parent
fcc196684c
commit
a1bba5e628
|
@ -5,7 +5,7 @@ keymap.modkeys = {}
|
|||
keymap.map = {}
|
||||
keymap.reverse_map = {}
|
||||
|
||||
local macos = rawget(_G, "MACOS_RESOURCES")
|
||||
local macos = PLATFORM:match("^[Mm]ac")
|
||||
|
||||
-- Thanks to mathewmariani, taken from his lite-macos github repository.
|
||||
local modkeys_os = require("core.modkeys-" .. (macos and "macos" or "generic"))
|
||||
|
|
Loading…
Reference in New Issue