Merge pull request #258 from mattermost/experiment/search-box

CTRL/CMD+F on Desktop app puts cursor in Mattermost search box filtered to channel

Close #229
This commit is contained in:
Yuya Ochiai
2016-08-22 20:27:37 +09:00
committed by GitHub
5 changed files with 34 additions and 1 deletions

View File

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