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

@@ -81,6 +81,12 @@ var MainPage = React.createClass({
webview.send('activate-search-box');
});
// activate search box in current chunnel
ipcRenderer.on('activate-search-box-in-channel', (event) => {
let webview = document.getElementById('mattermostView' + thisObj.state.key);
webview.send('activate-search-box-in-channel');
});
var focusListener = function() {
thisObj.handleOnTeamFocused(thisObj.state.key);
thisObj.refs[`mattermostView${thisObj.state.key}`].focusOnWebView();