Custom editor.action.acceptCursorTabSuggestion key binding does not work as expected

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

I have a key binding on editor.action.acceptCursorTabSuggestion on a f18.

Remapped the Caps Lock key to F18 (on Mac Random Bits 💾)

When there’s a tab suggestion and I press Caps Lock(F18), nothing happens.

Steps to Reproduce

Step 1: Remap the Caps Lock key to F18 (on Mac Random Bits 💾)

Step 2: change editor.action.acceptCursorTabSuggestion to F18

Step 3: go to a file, start typing and when there’s a tab suggestion, hit Caps Lock(f18)

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.43
VSCode Version: 1.99.3
Commit: 8e4da76ad196925accaa169efcae28c45454cce0
Date: 2025-10-30T18:49:27.589Z (4 days ago)
Electron: 34.5.8
Chromium: 132.0.6834.210
Node.js: 20.19.1
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.6.0

Does this stop you from using Cursor

Sometimes - I can sometimes use Cursor

Hey, thanks for the report. To help with debugging, please check:

  • Does F18 work for other commands? Try binding F18 to a different command (e.g., editor.action.commentLine) to see if Cursor detects the key itself
  • Test in regular VS Code: does the same F18 binding work in standard VS Code? This will help confirm whether the issue is in Cursor or higher up the chain
  • Check the Developer Tools console: open Developer Tools (Help > Toggle Developer Tools) and watch the Console tab while pressing the remapped Caps Lock - are there any errors?
  • Have you tried binding a different key combo Cmd+K to confirm the command itself works?

Let me know what you find.

Hey @deanrie ,

Thank you for looking into this and for the great suggestions!

I’ve tried editor.action.commentLine and it works as expected w F18. I’ve also tried to add cmd + k to editor.action.acceptCursorTabSuggestionand it is also working as expected.

I’ve attempted to check in vscode, and could not find editor.action.acceptCursorTabSuggestion. I’ll include the vscode insiders version I’ve used.

I’ve also checked the console tab and I see `workbench.desktop.main.js:4957 [Extension Host] q: Error: Command failed: q hook keyboard-focus-changed cursor 0` on every focus change, so I think it might not be related.

Version:
Version: 1.106.0-insider

Commit: 18d828e5d596e56b516fac7baa53e4b32cf087be

Date: 2025-11-04T05:03:04.572Z (1 wk ago)

Electron: 37.7.0

ElectronBuildId: 12597478

Chromium: 138.0.7204.251

Node.js: 22.20.0

V8: 13.8.258.32-electron.0

OS: Darwin arm64 24.6.0

Thanks for the detailed testing! This is helpful - the fact that F18 works for other commands and Cmd+K works for acceptCursorTabSuggestion points to a specific issue with this command + function key.

Could you share:

  • A screenshot of your keybindings.json showing the F18 binding
  • In Keyboard Shortcuts, search for acceptCursorTabSuggestion - any conflicts or extra bindings?
  • Whether it reproduces in a clean profile: Cmd+Shift+P → “Preferences: Create Temporary Editor Profile”

Hey deanrie,

sharing my keybinding.json:

[
  {
    "key": "f18",
    "command": "editor.action.acceptCursorTabSuggestion",
    "when": "cpp.shouldAcceptTab"
  },
  {
    "key": "shift+pageup",
    "command": "workbench.action.terminal.openNativeConsole",
    "when": "!terminalFocus"
  },
  {
    "key": "shift+cmd+c",
    "command": "-workbench.action.terminal.openNativeConsole",
    "when": "!terminalFocus"
  },
  {
    "key": "shift+cmd+k",
    "command": "copyRelativeFilePath",
    "when": "editorFocus"
  },
  {
    "key": "cmd+k shift+alt+cmd+c",
    "command": "-copyRelativeFilePath",
    "when": "editorFocus"
  },
  {
    "key": "alt+cmd+z",
    "command": "gitlens.diffWithPrevious",
    "when": "editorTextFocus && !isInDiffEditor && config.gitlens.keymap == 'alternate' && gitlens:activeFileStatus =~ /tracked/"
  },
  {
    "key": "alt+,",
    "command": "-gitlens.diffWithPrevious",
    "when": "editorTextFocus && !isInDiffEditor && config.gitlens.keymap == 'alternate' && gitlens:activeFileStatus =~ /tracked/"
  },
  {
    "key": "alt+cmd+z",
    "command": "gitlens.diffWithPrevious",
    "when": "editorTextFocus && !isInDiffEditor && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
  },
  {
    "key": "alt+cmd+g ,",
    "command": "-gitlens.diffWithPrevious",
    "when": "editorTextFocus && !isInDiffEditor && config.gitlens.keymap == 'chorded' && gitlens:activeFileStatus =~ /tracked/"
  },
  {
    "key": "shift+alt+cmd+i",
    "command": "workbench.action.quickchat.toggle",
    "when": "chatIsEnabled"
  },
  {
    "key": "shift+cmd+i",
    "command": "-workbench.action.quickchat.toggle",
    "when": "chatIsEnabled"
  },
  {
    "key": "shift+cmd+i",
    "command": "composer.openAsEditor"
  },
  {
    "key": "cmd+h",
    "command": "cursorai.action.generateInTerminal",
    "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported"
  },
  {
    "key": "shift+cmd+i",
    "command": "workbench.action.toggleMaximizeEditorGroup",
    "when": "editorPartMaximizedEditorGroup || editorPartMultipleEditorGroups"
  },
  {
    "key": "cmd+r cmd+m",
    "command": "-workbench.action.toggleMaximizeEditorGroup",
    "when": "editorPartMaximizedEditorGroup || editorPartMultipleEditorGroups"
  },
  {
    "key": "tab",
    "command": "-editor.action.acceptCursorTabSuggestion",
    "when": "cpp.shouldAcceptTab"
  },
  {
    "key": "cmd+i",
    "command": "composerMode.agent"
  },
  {
    "key": "cmd+l",
    "command": "composerMode.chat"
  },
  {
    "key": "cmd+i shift+cmd+i",
    "command": "composerMode.edit"
  },
  {
    "key": "cmd+i",
    "command": "composerMode.agent"
  },
  {
    "key": "shift+cmd+i",
    "command": "composerMode.edit"
  },
  {
    "key": "cmd+k",
    "command": "-cursorai.action.generateInTerminal",
    "when": "terminalFocus && terminalHasBeenCreated || terminalFocus && terminalProcessSupported || terminalHasBeenCreated && terminalPromptBarVisible || terminalProcessSupported && terminalPromptBarVisible"
  },
  {
    "key": "f18",
    "command": "editor.action.acceptCppSuggestion"
  },
  {
    "key": "f18",
    "command": "editor.action.inlineSuggest.acceptNextInlineEditPart"
  },
  {
    "key": "f18",
    "command": "editor.action.inlineSuggest.acceptNextLine"
  },
  {
    "key": "f18",
    "command": "editor.controlCommon.acceptSuggestion"
},
{
    "key": "shift+enter",
    "command": "workbench.action.terminal.sendSequence",
    "args": {
        "text": "\\\r\n"
    },
    "when": "terminalFocus"
},
{
  "key": "cmd+/",
  "command": "editor.action.commentLine",
  "when": "editorTextFocus && !editorReadonly"
},
{
  "key": "cmd+/",
  "command": "-editor.action.commentLine",
  "when": "editorTextFocus && !editorReadonly"
}
]

This is what I see when I search for `acceptCursorTabSuggestion in Keyboard Shortcuts:

Interestingly, after creating a new temporary profile and switching editor.action.acceptCursorTabSuggestion to F18, it is working as expected.

By deleting other keybindings from f18, it seems to work as expected. Thanks deanrie for the help!

1 Like

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.