aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
authorLibravatar Mahadevan Sreenivasan <mahadevan_sv@yahoo.com>2020-04-21 01:48:18 +0530
committerLibravatar GitHub <noreply@github.com>2020-04-20 20:18:18 +0000
commit4706721bfc1ad341c1775400f27d6a943265d188 (patch)
tree97facab3fcb5a354584fefd5357767b192c5ad30 /src/stores/ServicesStore.js
parentdocs: add mahadevans87 as a contributor (#612) (diff)
downloadferdium-app-4706721bfc1ad341c1775400f27d6a943265d188.tar.gz
ferdium-app-4706721bfc1ad341c1775400f27d6a943265d188.tar.zst
ferdium-app-4706721bfc1ad341c1775400f27d6a943265d188.zip
Refocus Webview only for active service (#610)
* Fix: Refocus Webview only for active service - add check to identify if the webview belongs to the active service during refocussing a webview. - blur and focus the webview only for the active service. Co-Authored-By: Sampath Kumar Krishnan <sampathblam@users.noreply.github.com> * fix: Focus on Active Service - replace document.activeElement.blur() with service.webview.blur() Co-Authored-By: Sampath Kumar Krishnan <sampathblam@users.noreply.github.com> * refactor - lint fixes Co-Authored-By: Sampath Kumar Krishnan <sampathblam@users.noreply.github.com> Co-authored-by: Sampath Kumar Krishnan <sampathblam@users.noreply.github.com>
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r--src/stores/ServicesStore.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index b595c3543..0ad523374 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -495,9 +495,7 @@ export default class ServicesStore extends Store {
495 const service = this.one(serviceId); 495 const service = this.one(serviceId);
496 496
497 if (service.webview) { 497 if (service.webview) {
498 if (document.activeElement) { 498 service.webview.blur();
499 document.activeElement.blur();
500 }
501 service.webview.focus(); 499 service.webview.focus();
502 } 500 }
503 } 501 }