Move current search in channel function to Shift+CTRL+S

Add search in team

Closes #270
This commit is contained in:
Kolja Lampe
2016-09-04 23:36:22 +02:00
parent d6553108cf
commit 1f5546a250
5 changed files with 30 additions and 4 deletions

View File

@@ -70,13 +70,21 @@ var createTemplate = function(mainWindow, config) {
}, {
role: 'selectall'
}, separatorItem, {
label: 'Search in Channel',
accelerator: 'CmdOrCtrl+F',
label: 'Search in Team',
accelerator: 'CmdOrCtrl+S',
click: (item, focusedWindow) => {
if (focusedWindow) {
focusedWindow.webContents.send('activate-search-box');
}
}
}, {
label: 'Search in Channel',
accelerator: 'Shift+CmdOrCtrl+S',
click: (item, focusedWindow) => {
if (focusedWindow) {
focusedWindow.webContents.send('activate-search-box-in-channel');
}
}
}]
});
template.push({