Skip to content

Commit db396ec

Browse files
dtom90Rokt33r
authored andcommitted
Added insert date & time info to HotkeyTab settings
1 parent 6b86865 commit db396ec

File tree

2 files changed

+22
-0
lines changed

2 files changed

+22
-0
lines changed

browser/main/lib/ConfigManager.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,8 @@ export const DEFAULT_CONFIG = {
3131
toggleMode: OSX ? 'Command + Alt + M' : 'Ctrl + M',
3232
deleteNote: OSX ? 'Command + Shift + Backspace' : 'Ctrl + Shift + Backspace',
3333
pasteSmartly: OSX ? 'Command + Shift + V' : 'Ctrl + Shift + V',
34+
insertDate: OSX ? 'Command + /' : 'Ctrl + /',
35+
insertDateTime: OSX ? 'Command + Alt + /' : 'Ctrl + Shift + /',
3436
toggleMenuBar: 'Alt'
3537
},
3638
ui: {

browser/main/modals/PreferencesModal/HotkeyTab.js

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,26 @@ class HotkeyTab extends React.Component {
173173
/>
174174
</div>
175175
</div>
176+
<div styleName='group-section'>
177+
<div styleName='group-section-label'>{i18n.__('Insert Current Date')}</div>
178+
<div styleName='group-section-control'>
179+
<input styleName='group-section-control-input'
180+
value={config.hotkey.insertDate}
181+
type='text'
182+
disabled='true'
183+
/>
184+
</div>
185+
</div>
186+
<div styleName='group-section'>
187+
<div styleName='group-section-label'>{i18n.__('Insert Current Date and Time')}</div>
188+
<div styleName='group-section-control'>
189+
<input styleName='group-section-control-input'
190+
value={config.hotkey.insertDateTime}
191+
type='text'
192+
disabled='true'
193+
/>
194+
</div>
195+
</div>
176196
<div styleName='group-control'>
177197
<button styleName='group-control-leftButton'
178198
onClick={(e) => this.handleHintToggleButtonClick(e)}

0 commit comments

Comments
 (0)