Merge pull request #273 from Razzeee/search

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

Close #270
This commit is contained in:
Yuya Ochiai
2016-09-10 00:04:28 +09:00
committed by GitHub
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({