mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-05 16:35:33 +00:00
Ensure that the IME interface methods are all defined for both browser and webview modes. Deprecate 'Element' methods and replace with 'TextStore' to clarify return type. Add deprecation flags where needed and update documentation accordingly. Fixes: #16144
38 lines
786 B
Markdown
38 lines
786 B
Markdown
---
|
|
title: FocusLastActiveElement (deprecated)
|
|
---
|
|
|
|
## Summary
|
|
|
|
Restore the focus to the text store active before input was moved to KeymanWeb.
|
|
|
|
Note that the name is misleading: this function move focus to the last active
|
|
`TextStore`, not the last active `HTMLElement` (in practice, this is equivalent
|
|
in a web browser context).
|
|
|
|
## Syntax
|
|
|
|
```js
|
|
keyman.interface.FocusLastActiveElement();
|
|
keyman.interface.focusLastActiveElement();
|
|
KeymanWeb.FocusLastActiveElement();
|
|
KeymanWeb.focusLastActiveElement();
|
|
```
|
|
|
|
### Parameters
|
|
|
|
None.
|
|
|
|
### Return Value
|
|
|
|
`undefined`
|
|
|
|
### Replaced By
|
|
|
|
This function is deprecated; see instead:
|
|
|
|
* [`keyman.interface.focusLastActiveTextStore()`](focusLastActiveTextStore)
|
|
|
|
### See also
|
|
|
|
* [`keyman.focusLastActiveElement()`](../core/focusLastActiveElement)
|