diff --git a/client/modules/IDE/components/KeyboardShortcutModal.jsx b/client/modules/IDE/components/KeyboardShortcutModal.jsx index 871b41c967..fc4159b051 100644 --- a/client/modules/IDE/components/KeyboardShortcutModal.jsx +++ b/client/modules/IDE/components/KeyboardShortcutModal.jsx @@ -9,6 +9,21 @@ function KeyboardShortcutModal() { const newFileCommand = metaKey === 'Ctrl' ? `${metaKeyName} + Alt + N` : `${metaKeyName} + ⌥ + N`; const renameCommand = metaKey === 'Ctrl' ? 'F2' : 'Ctrl + F2'; + const selectNextOccurrenceCommand = `${metaKeyName} + D`; + const addCursorAboveCommand = + metaKey === 'Ctrl' + ? `${metaKeyName} + Alt + Up` + : `${metaKeyName} + ⌥ + Up`; + const addCursorBelowCommand = + metaKey === 'Ctrl' + ? `${metaKeyName} + Alt + Down` + : `${metaKeyName} + ⌥ + Down`; + const deleteLineCommand = `${metaKeyName} + Shift + K`; + const goToLineCommand = + metaKey === 'Ctrl' ? `${metaKeyName} + Alt + G` : `${metaKeyName} + ⌥ + G`; + const matchingBracketCommand = `${metaKeyName} + Shift + \\`; + const duplicateLineUpCommand = + metaKey === 'Ctrl' ? 'Shift + Alt + Up' : 'Shift + ⌥ + Up'; return (

@@ -80,6 +95,46 @@ function KeyboardShortcutModal() { {renameCommand} {t('KeyboardShortcuts.CodeEditing.RenameVariable')} +
  • + + {selectNextOccurrenceCommand} + + {t('KeyboardShortcuts.CodeEditing.SelectNextOccurrence')} +
  • +
  • + + {addCursorAboveCommand} + + {t('KeyboardShortcuts.CodeEditing.AddCursorAbove')} +
  • +
  • + + {addCursorBelowCommand} + + {t('KeyboardShortcuts.CodeEditing.AddCursorBelow')} +
  • +
  • + + {deleteLineCommand} + + {t('KeyboardShortcuts.CodeEditing.DeleteLine')} +
  • +
  • + {goToLineCommand} + {t('KeyboardShortcuts.CodeEditing.GoToLine')} +
  • +
  • + + {matchingBracketCommand} + + {t('KeyboardShortcuts.CodeEditing.MatchingBracket')} +
  • +
  • + + {duplicateLineUpCommand} + + {t('KeyboardShortcuts.CodeEditing.DuplicateLineUp')} +
  • {t('KeyboardShortcuts.General')} diff --git a/translations/locales/en-US/translations.json b/translations/locales/en-US/translations.json index ae174ba1f7..03598ce66f 100644 --- a/translations/locales/en-US/translations.json +++ b/translations/locales/en-US/translations.json @@ -269,7 +269,14 @@ "CodeEditing": "Code Editing", "ColorPicker": "Show Inline Color Picker", "CreateNewFile": "Create New File", - "RenameVariable": "Rename Variable" + "RenameVariable": "Rename Variable", + "SelectNextOccurrence": "Select Next Occurrence", + "AddCursorAbove": "Add Cursor Above", + "AddCursorBelow": "Add Cursor Below", + "DeleteLine": "Delete Line", + "GoToLine": "Go to Line", + "MatchingBracket": "Jump to Matching Bracket", + "DuplicateLineUp": "Duplicate Line Up" }, "General": "General", "GeneralSelection": {