Use PLATFORM to detect macOS for key bindings

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

View File

@ -5,7 +5,7 @@ keymap.modkeys = {}
keymap.map = {} keymap.map = {}
keymap.reverse_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. -- Thanks to mathewmariani, taken from his lite-macos github repository.
local modkeys_os = require("core.modkeys-" .. (macos and "macos" or "generic")) local modkeys_os = require("core.modkeys-" .. (macos and "macos" or "generic"))