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
39 lines
812 B
Markdown
39 lines
812 B
Markdown
---
|
|
title: GetLastActiveElement (deprecated)
|
|
---
|
|
|
|
## Summary
|
|
|
|
Returns the last active target text store before the current KMW operation.
|
|
|
|
Note that the name is misleading: this function returns the last active
|
|
`TextStore`, not the last active `HTMLElement`. Use instead
|
|
[`keyman.interface.getLastActiveTextStore()`](getLastActiveTextStore).
|
|
|
|
## Syntax
|
|
|
|
```js
|
|
keyman.interface.GetLastActiveElement();
|
|
keyman.interface.getLastActiveElement();
|
|
KeymanWeb.GetLastActiveElement();
|
|
KeymanWeb.getLastActiveElement();
|
|
```
|
|
|
|
### Parameters
|
|
|
|
None.
|
|
|
|
### Return Value
|
|
|
|
`TextStore`
|
|
: The requested text store.
|
|
|
|
### Replaced By
|
|
|
|
This function is deprecated; see instead:
|
|
|
|
* [`keyman.interface.getLastActiveTextStore()`](getLastActiveTextStore)
|
|
|
|
### See also
|
|
|
|
* [`keyman.getLastActiveElement()`](../core/getLastActiveElement)
|