diff --git a/assets/keymaps/default-linux.json b/assets/keymaps/default-linux.json index f93c459ec6..5c300e8288 100644 --- a/assets/keymaps/default-linux.json +++ b/assets/keymaps/default-linux.json @@ -467,22 +467,25 @@ "enter": "editor::ConfirmRename" } }, - { - "context": "Editor && showing_completions", - "use_key_equivalents": true, - "bindings": { - "enter": "editor::ConfirmCompletion" - } - }, { "context": "Editor && !inline_completion && showing_completions", "use_key_equivalents": true, "bindings": { + "enter": "editor::ConfirmCompletion", "tab": "editor::ComposeCompletion" } }, { - "context": "Editor && inline_completion", + "context": "Editor && inline_completion && showing_completions", + "use_key_equivalents": true, + "bindings": { + "enter": "editor::ConfirmCompletion", + "tab": "editor::ComposeCompletion", + "shift-tab": "editor::AcceptInlineCompletion" + } + }, + { + "context": "Editor && inline_completion && !showing_completions", "use_key_equivalents": true, "bindings": { "tab": "editor::AcceptInlineCompletion" diff --git a/assets/keymaps/default-macos.json b/assets/keymaps/default-macos.json index f821bc982d..a3f35dccdd 100644 --- a/assets/keymaps/default-macos.json +++ b/assets/keymaps/default-macos.json @@ -538,22 +538,25 @@ "enter": "editor::ConfirmRename" } }, - { - "context": "Editor && showing_completions", - "use_key_equivalents": true, - "bindings": { - "enter": "editor::ConfirmCompletion" - } - }, { "context": "Editor && !inline_completion && showing_completions", "use_key_equivalents": true, "bindings": { + "enter": "editor::ConfirmCompletion", "tab": "editor::ComposeCompletion" } }, { - "context": "Editor && inline_completion", + "context": "Editor && inline_completion && showing_completions", + "use_key_equivalents": true, + "bindings": { + "enter": "editor::ConfirmCompletion", + "tab": "editor::ComposeCompletion", + "shift-tab": "editor::AcceptInlineCompletion" + } + }, + { + "context": "Editor && inline_completion && !showing_completions", "use_key_equivalents": true, "bindings": { "tab": "editor::AcceptInlineCompletion"