diff --git a/web/source/text/kbdInterface.ts b/web/source/text/kbdInterface.ts index 4748f3635b..c6d8a0dadb 100644 --- a/web/source/text/kbdInterface.ts +++ b/web/source/text/kbdInterface.ts @@ -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() {