Skip to content

Commit

Permalink
#206: Basic structure for menu and lock toggle.
Browse files Browse the repository at this point in the history
  • Loading branch information
Matthew Mulholland committed Jun 27, 2019
1 parent 1f432c3 commit b704928
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/main/menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,15 @@ class AppMenu {
// }
// ]
type: 'separator'
}, {
label: 'Import Column Properties',
accelerator: 'Shift+CmdOrCtrl+I',
click () {
webContents().send('importColumnProperties')
webContents().send('toggleLockColumnProperties')
}
}, {
type: 'separator'
}, {
label: 'Save',
accelerator: 'CmdOrCtrl+S',
Expand Down
5 changes: 5 additions & 0 deletions src/renderer/components/KeyboardHelp.vue
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,11 @@
<td><kbd>Ctrl</kbd> <kbd>O</kbd></td>
<td><kbd>Command &#8984;</kbd> <kbd>O</kbd></td>
</tr>
<tr>
<td><b>Import Column Properties</b> - Import a table schema JSON file.</td>
<td><kbd>Shift &#8679;</kbd> <kbd>Ctrl</kbd> <kbd>I</kbd></td>
<td><kbd>Shift &#8679;</kbd> <kbd>Command &#8984;</kbd> <kbd>I</kbd></td>
</tr>
<tr>
<td><b>Save</b> the active data tab as a CSV file</td>
<td><kbd>Ctrl</kbd> <kbd>S</kbd></td>
Expand Down
4 changes: 4 additions & 0 deletions src/renderer/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -132,6 +132,10 @@ ipc.on('toggleCaseSensitiveHeader', function() {
ipc.send('hasCaseSensitiveHeader', toggledCase)
})

ipc.on('importColumnProperties', function() {
console.log('arrived')
})

export function closeSecondaryWindow(windowName) {
ipc.sendSync('closeSecondaryWindow', windowName)
}
Expand Down

0 comments on commit b704928

Please sign in to comment.