diff options
Diffstat (limited to 'src/stores')
-rw-r--r-- | src/stores/ServicesStore.js | 5 |
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 | } |