Use PLATFORM to detect macOS for key bindings
This commit is contained in:
parent
590c83148e
commit
c05cddecb7
|
@ -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