Merge pull request #2109 from keymanapp/web-1754-cjk-func-fixes

[Web] Legacy API casing fixes
This commit is contained in:
Joshua Horton 2019-09-20 15:14:36 +07:00 committed by GitHub
commit 4fef9be412
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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() {