File tree 2 files changed +6
-1
lines changed
client/modules/IDE/components
2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -158,7 +158,8 @@ class Editor extends React.Component {
158
158
// choose a color, it deletes characters inline. This is a
159
159
// hack to prevent that.
160
160
[ `${ metaKey } -K` ] : ( cm , event ) =>
161
- cm . state . colorpicker . popup_color_picker ( { length : 0 } )
161
+ cm . state . colorpicker . popup_color_picker ( { length : 0 } ) ,
162
+ [ `${ metaKey } -.` ] : 'toggleComment' // Note: most adblockers use the shortcut ctrl+.
162
163
} ) ;
163
164
164
165
this . initializeDocuments ( this . props . files ) ;
Original file line number Diff line number Diff line change @@ -61,6 +61,10 @@ function KeyboardShortcutModal() {
61
61
< span className = "keyboard-shortcut__command" > { metaKeyName } + /</ span >
62
62
< span > { t ( 'KeyboardShortcuts.CodeEditing.CommentLine' ) } </ span >
63
63
</ li >
64
+ < li className = "keyboard-shortcut-item" >
65
+ < span className = "keyboard-shortcut__command" > { metaKeyName } + .</ span >
66
+ < span > { t ( 'KeyboardShortcuts.CodeEditing.CommentLine' ) } </ span >
67
+ </ li >
64
68
< li className = "keyboard-shortcut-item" >
65
69
< span className = "keyboard-shortcut__command" > { metaKeyName } + K</ span >
66
70
< span > { t ( 'KeyboardShortcuts.CodeEditing.ColorPicker' ) } </ span >
You can’t perform that action at this time.
0 commit comments