File tree Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Expand file tree Collapse file tree 1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change @@ -205,23 +205,11 @@ export default class CodeEditor extends React.Component {
205
205
'Cmd-T' : function ( cm ) {
206
206
// Do nothing
207
207
} ,
208
- 'Ctrl-/' : function ( cm ) {
209
- if ( global . process . platform === 'darwin' ) { return }
208
+ [ translateHotkey ( hotkey . insertDate ) ] : function ( cm ) {
210
209
const dateNow = new Date ( )
211
210
cm . replaceSelection ( dateNow . toLocaleDateString ( ) )
212
211
} ,
213
- 'Cmd-/' : function ( cm ) {
214
- if ( global . process . platform !== 'darwin' ) { return }
215
- const dateNow = new Date ( )
216
- cm . replaceSelection ( dateNow . toLocaleDateString ( ) )
217
- } ,
218
- 'Shift-Ctrl-/' : function ( cm ) {
219
- if ( global . process . platform === 'darwin' ) { return }
220
- const dateNow = new Date ( )
221
- cm . replaceSelection ( dateNow . toLocaleString ( ) )
222
- } ,
223
- 'Alt-Cmd-/' : function ( cm ) {
224
- if ( global . process . platform !== 'darwin' ) { return }
212
+ [ translateHotkey ( hotkey . insertDateTime ) ] : function ( cm ) {
225
213
const dateNow = new Date ( )
226
214
cm . replaceSelection ( dateNow . toLocaleString ( ) )
227
215
} ,
You can’t perform that action at this time.
0 commit comments