aboutsummaryrefslogtreecommitdiffstats
path: root/src/stores/ServicesStore.js
diff options
context:
space:
mode:
authorLibravatar Stefan Malzner <stefan@adlk.io>2019-02-03 21:03:01 +0100
committerLibravatar Stefan Malzner <stefan@adlk.io>2019-02-03 21:03:01 +0100
commitebb9735c84a19de5a37e983480b3295865d21128 (patch)
tree24754321e3cb38721ffce2db5af86d849067f7d2 /src/stores/ServicesStore.js
parentMerge branch 'develop' (diff)
parentfix(Service): Improve focus when switching services (diff)
downloadferdium-app-ebb9735c84a19de5a37e983480b3295865d21128.tar.gz
ferdium-app-ebb9735c84a19de5a37e983480b3295865d21128.tar.zst
ferdium-app-ebb9735c84a19de5a37e983480b3295865d21128.zip
Merge branch 'develop'
Diffstat (limited to 'src/stores/ServicesStore.js')
-rw-r--r--src/stores/ServicesStore.js5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/stores/ServicesStore.js b/src/stores/ServicesStore.js
index f79197c38..efd57a09d 100644
--- a/src/stores/ServicesStore.js
+++ b/src/stores/ServicesStore.js
@@ -292,6 +292,8 @@ export default class ServicesStore extends Store {
292 this.all[index].isActive = false; 292 this.all[index].isActive = false;
293 }); 293 });
294 service.isActive = true; 294 service.isActive = true;
295
296 this._focusActiveService();
295 } 297 }
296 298
297 @action _setActiveNext() { 299 @action _setActiveNext() {
@@ -342,6 +344,9 @@ export default class ServicesStore extends Store {
342 const service = this.one(serviceId); 344 const service = this.one(serviceId);
343 345
344 if (service.webview) { 346 if (service.webview) {
347 if (document.activeElement) {
348 document.activeElement.blur();
349 }
345 service.webview.focus(); 350 service.webview.focus();
346 } 351 }
347 } 352 }