Use PLATFORM to detect macOS for key bindings

This commit is contained in:
Francesco Abbate 2021-09-29 11:38:55 +02:00
parent 590c83148e
commit c05cddecb7
1 changed files with 1 additions and 1 deletions

View File

@ -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"))