sourcegraph/cody

keyboard shortcut hints are hardcoded

Opened this issue · 2 comments

Version

1.50.0

Describe the bug

The keyboard "ghost" hints such as this one are hardcoded and will not change even if the commands are unbound or rebound to other key strokes:

image

This can be clearly seen from this code:

const EDIT_SHORTCUT_LABEL = isMacOS() ? 'Opt+K' : 'Alt+K'
const CHAT_SHORTCUT_LABEL = isMacOS() ? 'Opt+L' : 'Alt+L'
const DOC_SHORTCUT_LABEL = isMacOS() ? 'Opt+D' : 'Alt+D'

text: `${EDIT_SHORTCUT_LABEL} to Edit, ${CHAT_SHORTCUT_LABEL} to Chat`,

Expected behavior

Ghost keyboard shortcut hints should always be correct, even if commands have been rebound to non-default shortcuts.

Additional context

No response

Hey @aspiers

Thank you for reporting this issue to us.
The team will have a look into it.

Happy programming