Use PLATFORM to detect macOS for key bindings
This commit is contained in:
parent
4e58e8be28
commit
201dd295f9
|
@ -5,7 +5,7 @@ keymap.modkeys = {}
|
|||
keymap.map = {}
|
||||
keymap.reverse_map = {}
|
||||
|
||||
local macos = rawget(_G, "MACOS")
|
||||
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