From aa18d3b84ece4fbc864f6a4f4d3b84fbef564b48 Mon Sep 17 00:00:00 2001 From: vantezzen Date: Mon, 23 Sep 2019 20:18:01 +0200 Subject: Fix lint --- src/features/quickSwitch/Component.js | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/features/quickSwitch') diff --git a/src/features/quickSwitch/Component.js b/src/features/quickSwitch/Component.js index 3217a3d93..ddbdbe304 100644 --- a/src/features/quickSwitch/Component.js +++ b/src/features/quickSwitch/Component.js @@ -1,4 +1,5 @@ import React, { Component, createRef } from 'react'; +import { remote } from 'electron'; import PropTypes from 'prop-types'; import { observer, inject } from 'mobx-react'; import { reaction } from 'mobx'; @@ -190,6 +191,8 @@ export default @injectSheet(styles) @inject('stores', 'actions') @observer class if (isModalVisible && !this.state.wasPrevVisible) { // Set focus back on current window if its in a service // TODO: Find a way to gain back focus + remote.getCurrentWindow().blurWebView(); + remote.getCurrentWindow().webContents.focus(); // The input "focus" attribute will only work on first modal open // Manually add focus to the input element -- cgit v1.2.3-70-g09d2