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

@@ -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() {
var webview = document.getElementById('mattermostView' + thisObj.state.key);
webview.focus();