mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-18 14:27:43 +00:00
Merge pull request #2109 from keymanapp/web-1754-cjk-func-fixes
[Web] Legacy API casing fixes
This commit is contained in:
commit
4fef9be412
1 changed files with 7 additions and 9 deletions
|
|
@ -1103,14 +1103,8 @@ namespace com.keyman.text {
|
|||
/**
|
||||
* Legacy entry points (non-standard names)- included only to allow existing IME keyboards to continue to be used
|
||||
*/
|
||||
['getLastActiveElement'](): HTMLElement {
|
||||
let keyman = com.keyman.singleton;
|
||||
if(!keyman.isHeadless) {
|
||||
return keyman.domManager.getLastActiveElement();
|
||||
} else {
|
||||
// What are the IMEs looking for with this method? Would an element interface suffice?
|
||||
return null;
|
||||
}
|
||||
['getLastActiveElement'](): OutputTarget {
|
||||
return text.Processor.getOutputTarget();
|
||||
}
|
||||
|
||||
['focusLastActiveElement'](): void {
|
||||
|
|
@ -1143,7 +1137,11 @@ namespace com.keyman.text {
|
|||
}
|
||||
}
|
||||
|
||||
// Needed for some legacy CJK keyboards.
|
||||
// Also needed for some legacy CJK keyboards.
|
||||
['GetLastActiveElement'] = this['getLastActiveElement'];
|
||||
['FocusLastActiveElement'] = this['focusLastActiveElement'];
|
||||
['HideHelp'] = this['hideHelp'];
|
||||
['ShowHelp'] = this['showHelp'];
|
||||
['ShowPinnedHelp'] = this['showPinnedHelp'];
|
||||
|
||||
resetContext() {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue