mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-09 10:25:32 +00:00
fix(web): restoring original outputTarget only active due to focus-maintenance
This commit is contained in:
parent
2863bdbe57
commit
f8d4f8eb85
1 changed files with 6 additions and 0 deletions
|
|
@ -211,6 +211,12 @@ export default class ContextManager extends ContextManagerBase<BrowserConfigurat
|
|||
const originalTarget = this.activeTarget; // may differ, depending on focus state.
|
||||
|
||||
if(target == originalTarget) {
|
||||
// A focus state may have .currentTarget as null at this stage; if the func
|
||||
// is being called with a non-null parameter, we want this SET.
|
||||
if(target) {
|
||||
this.currentTarget = originalTarget;
|
||||
}
|
||||
|
||||
/**
|
||||
* If it's already active, we should cancel early.
|
||||
*
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue