diff --git a/src/main/menu.js b/src/main/menu.js index 451da0d37..8b28696f8 100644 --- a/src/main/menu.js +++ b/src/main/menu.js @@ -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', diff --git a/src/renderer/components/KeyboardHelp.vue b/src/renderer/components/KeyboardHelp.vue index 738189cea..412c02233 100644 --- a/src/renderer/components/KeyboardHelp.vue +++ b/src/renderer/components/KeyboardHelp.vue @@ -236,6 +236,11 @@ Ctrl O Command ⌘ O + + Import Column Properties - Import a table schema JSON file. + Shift ⇧ Ctrl I + Shift ⇧ Command ⌘ I + Save the active data tab as a CSV file Ctrl S diff --git a/src/renderer/index.js b/src/renderer/index.js index 6f5a8ee98..638b764bb 100644 --- a/src/renderer/index.js +++ b/src/renderer/index.js @@ -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) }