MacOS modifier key adjustment (replace `alt`) per #262 (#263)

* Use `cmd` as modifier key for tab seletion (macos)

Part of #262.

* Use `cmd+shift` instead of `alt` on macos

Fixes #262.
This commit is contained in:
Björn Buckwalter 2021-06-09 20:23:40 +02:00 committed by GitHub
parent 7de1fde9cf
commit 702ab2625c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 18 additions and 18 deletions

View File

@ -6,31 +6,31 @@ local function keymap_macos(keymap)
["cmd+n"] = "core:new-doc", ["cmd+n"] = "core:new-doc",
["cmd+shift+c"] = "core:change-project-folder", ["cmd+shift+c"] = "core:change-project-folder",
["cmd+shift+o"] = "core:open-project-folder", ["cmd+shift+o"] = "core:open-project-folder",
["alt+return"] = "core:toggle-fullscreen", ["cmd+ctrl+return"] = "core:toggle-fullscreen",
["alt+shift+j"] = "root:split-left", ["cmd+ctrl+shift+j"] = "root:split-left",
["alt+shift+l"] = "root:split-right", ["cmd+ctrl+shift+l"] = "root:split-right",
["alt+shift+i"] = "root:split-up", ["cmd+ctrl+shift+i"] = "root:split-up",
["alt+shift+k"] = "root:split-down", ["cmd+ctrl+shift+k"] = "root:split-down",
["alt+j"] = "root:switch-to-left", ["cmd+ctrl+j"] = "root:switch-to-left",
["alt+l"] = "root:switch-to-right", ["cmd+ctrl+l"] = "root:switch-to-right",
["alt+i"] = "root:switch-to-up", ["cmd+ctrl+i"] = "root:switch-to-up",
["alt+k"] = "root:switch-to-down", ["cmd+ctrl+k"] = "root:switch-to-down",
["ctrl+w"] = "root:close", ["ctrl+w"] = "root:close",
["ctrl+tab"] = "root:switch-to-next-tab", ["ctrl+tab"] = "root:switch-to-next-tab",
["ctrl+shift+tab"] = "root:switch-to-previous-tab", ["ctrl+shift+tab"] = "root:switch-to-previous-tab",
["cmd+pageup"] = "root:move-tab-left", ["cmd+pageup"] = "root:move-tab-left",
["cmd+pagedown"] = "root:move-tab-right", ["cmd+pagedown"] = "root:move-tab-right",
["alt+1"] = "root:switch-to-tab-1", ["cmd+1"] = "root:switch-to-tab-1",
["alt+2"] = "root:switch-to-tab-2", ["cmd+2"] = "root:switch-to-tab-2",
["alt+3"] = "root:switch-to-tab-3", ["cmd+3"] = "root:switch-to-tab-3",
["alt+4"] = "root:switch-to-tab-4", ["cmd+4"] = "root:switch-to-tab-4",
["alt+5"] = "root:switch-to-tab-5", ["cmd+5"] = "root:switch-to-tab-5",
["alt+6"] = "root:switch-to-tab-6", ["cmd+6"] = "root:switch-to-tab-6",
["alt+7"] = "root:switch-to-tab-7", ["cmd+7"] = "root:switch-to-tab-7",
["alt+8"] = "root:switch-to-tab-8", ["cmd+8"] = "root:switch-to-tab-8",
["alt+9"] = "root:switch-to-tab-9", ["cmd+9"] = "root:switch-to-tab-9",
["cmd+f"] = "find-replace:find", ["cmd+f"] = "find-replace:find",
["cmd+r"] = "find-replace:replace", ["cmd+r"] = "find-replace:replace",