Skip to content

Commit

Permalink
Add insert snippet shortcut to settings panel (#334)
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhabib committed Feb 29, 2024
1 parent 6ad5895 commit dd95719
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/afraid-toes-reply.md
@@ -0,0 +1,5 @@
---
'playroom': patch
---

Add 'Insert snippet' shortcut to 'Keyboard Shortcuts' list in settings panel for better discoverability.
1 change: 1 addition & 0 deletions src/Playroom/SettingsPanel/SettingsPanel.tsx
Expand Up @@ -29,6 +29,7 @@ const getKeyBindings = () => {
'Toggle comment': [metaKeySymbol, '/'],
'Wrap selection in tag': [metaKeySymbol, shiftKeySymbol, ','],
'Format code': [metaKeySymbol, 'S'],
'Insert snippet': [metaKeySymbol, 'K'],
'Select next occurrence': [metaKeySymbol, 'D'],
'Swap line up': [altKeySymbol, '↑'],
'Swap line down': [altKeySymbol, '↓'],
Expand Down

0 comments on commit dd95719

Please sign in to comment.