aboutsummaryrefslogtreecommitdiffstats
path: root/src/features
diff options
context:
space:
mode:
authorLibravatar vantezzen <hello@vantezzen.io>2019-09-23 20:18:01 +0200
committerLibravatar vantezzen <hello@vantezzen.io>2019-09-23 20:18:01 +0200
commitaa18d3b84ece4fbc864f6a4f4d3b84fbef564b48 (patch)
treee59f432a96b18626d6fce75f48dd8a8e5f94aafd /src/features
parentAdd darkreader for universal darkmode (diff)
downloadferdium-app-aa18d3b84ece4fbc864f6a4f4d3b84fbef564b48.tar.gz
ferdium-app-aa18d3b84ece4fbc864f6a4f4d3b84fbef564b48.tar.zst
ferdium-app-aa18d3b84ece4fbc864f6a4f4d3b84fbef564b48.zip
Fix lint
Diffstat (limited to 'src/features')
-rw-r--r--src/features/quickSwitch/Component.js3
1 files changed, 3 insertions, 0 deletions
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 @@
1import React, { Component, createRef } from 'react'; 1import React, { Component, createRef } from 'react';
2import { remote } from 'electron';
2import PropTypes from 'prop-types'; 3import PropTypes from 'prop-types';
3import { observer, inject } from 'mobx-react'; 4import { observer, inject } from 'mobx-react';
4import { reaction } from 'mobx'; 5import { reaction } from 'mobx';
@@ -190,6 +191,8 @@ export default @injectSheet(styles) @inject('stores', 'actions') @observer class
190 if (isModalVisible && !this.state.wasPrevVisible) { 191 if (isModalVisible && !this.state.wasPrevVisible) {
191 // Set focus back on current window if its in a service 192 // Set focus back on current window if its in a service
192 // TODO: Find a way to gain back focus 193 // TODO: Find a way to gain back focus
194 remote.getCurrentWindow().blurWebView();
195 remote.getCurrentWindow().webContents.focus();
193 196
194 // The input "focus" attribute will only work on first modal open 197 // The input "focus" attribute will only work on first modal open
195 // Manually add focus to the input element 198 // Manually add focus to the input element