mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-27 18:57:42 +00:00
Incorporates legacy KeymanWeb object API fixes from the 'typed-callbacks' branch.
This commit is contained in:
commit
6f9ae4ffba
3 changed files with 24 additions and 31 deletions
|
|
@ -24,11 +24,6 @@
|
|||
goog.exportProperty(keyman, "build", keyman); // Only works on individual instances.
|
||||
goog.exportSymbol("KeymanBase.prototype.addEventListener", KeymanBase.prototype.addEventListener);
|
||||
goog.exportSymbol("KeymanBase.prototype.isFontAvailable", KeymanBase.prototype.isFontAvailable);
|
||||
goog.exportSymbol("KeymanBase.prototype.GetLastActiveElement", KeymanBase.prototype.getLastActiveElement);
|
||||
goog.exportSymbol("KeymanBase.prototype.FocusLastActiveElement", KeymanBase.prototype.focusLastActiveElement);
|
||||
goog.exportSymbol("KeymanBase.prototype.HideHelp", KeymanBase.prototype.hideHelp);
|
||||
goog.exportSymbol("KeymanBase.prototype.ShowHelp", KeymanBase.prototype.showHelp);
|
||||
goog.exportSymbol("KeymanBase.prototype.ShowPinnedHelp", KeymanBase.prototype.showPinnedHelp);
|
||||
|
||||
// Util.ts
|
||||
|
||||
|
|
|
|||
|
|
@ -349,32 +349,6 @@ class KeymanBase {
|
|||
['init'](arg) {
|
||||
this.domManager.init(arg);
|
||||
}
|
||||
|
||||
/*
|
||||
* Legacy entry points (non-standard names)- included only to allow existing IME keyboards to continue to be used
|
||||
*/
|
||||
|
||||
getLastActiveElement(): HTMLElement {
|
||||
return this._LastActiveElement;
|
||||
}
|
||||
|
||||
focusLastActiveElement(): void {
|
||||
(<any>this)._FocusLastActiveElement();
|
||||
}
|
||||
|
||||
//The following entry points are defined but should not normally be used in a keyboard, as OSK display is no longer determined by the keyboard
|
||||
hideHelp(): void {
|
||||
this.osk._Hide(true);
|
||||
}
|
||||
|
||||
showHelp(Px: number, Py: number): void {
|
||||
this.osk._Show(Px,Py);
|
||||
}
|
||||
|
||||
showPinnedHelp(): void {
|
||||
this.osk.userPositioned=true;
|
||||
this.osk._Show(-1,-1);
|
||||
}
|
||||
|
||||
/**
|
||||
* Function _push
|
||||
|
|
|
|||
|
|
@ -883,4 +883,28 @@ class KeyboardInterface {
|
|||
return this.keymanweb.keyboardManager.activeKeyboard['gs'](element, keystroke);
|
||||
}
|
||||
|
||||
/**
|
||||
* Legacy entry points (non-standard names)- included only to allow existing IME keyboards to continue to be used
|
||||
*/
|
||||
['getLastActiveElement'](): HTMLElement {
|
||||
return this.keymanweb._LastActiveElement;
|
||||
}
|
||||
|
||||
['focusLastActiveElement'](): void {
|
||||
(<any>this)._FocusLastActiveElement();
|
||||
}
|
||||
|
||||
//The following entry points are defined but should not normally be used in a keyboard, as OSK display is no longer determined by the keyboard
|
||||
['hideHelp'](): void {
|
||||
this.keymanweb.osk._Hide(true);
|
||||
}
|
||||
|
||||
['showHelp'](Px: number, Py: number): void {
|
||||
this.keymanweb.osk._Show(Px,Py);
|
||||
}
|
||||
|
||||
['showPinnedHelp'](): void {
|
||||
this.keymanweb.osk.userPositioned=true;
|
||||
this.keymanweb.osk._Show(-1,-1);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue