diff options
author | vantezzen <hello@vantezzen.io> | 2019-09-23 20:18:01 +0200 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2019-09-23 20:18:01 +0200 |
commit | aa18d3b84ece4fbc864f6a4f4d3b84fbef564b48 (patch) | |
tree | e59f432a96b18626d6fce75f48dd8a8e5f94aafd /src/features/quickSwitch | |
parent | Add darkreader for universal darkmode (diff) | |
download | ferdium-app-aa18d3b84ece4fbc864f6a4f4d3b84fbef564b48.tar.gz ferdium-app-aa18d3b84ece4fbc864f6a4f4d3b84fbef564b48.tar.zst ferdium-app-aa18d3b84ece4fbc864f6a4f4d3b84fbef564b48.zip |
Fix lint
Diffstat (limited to 'src/features/quickSwitch')
-rw-r--r-- | src/features/quickSwitch/Component.js | 3 |
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 @@ | |||
1 | import React, { Component, createRef } from 'react'; | 1 | import React, { Component, createRef } from 'react'; |
2 | import { remote } from 'electron'; | ||
2 | import PropTypes from 'prop-types'; | 3 | import PropTypes from 'prop-types'; |
3 | import { observer, inject } from 'mobx-react'; | 4 | import { observer, inject } from 'mobx-react'; |
4 | import { reaction } from 'mobx'; | 5 | import { 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 |