mirror of
https://github.com/keymanapp/keyman.git
synced 2026-08-08 09:55:32 +00:00
51 lines
No EOL
1.4 KiB
TypeScript
51 lines
No EOL
1.4 KiB
TypeScript
// Defines a number of KMW objects.
|
|
/// <reference path="kmwtypedefs.ts"/>
|
|
|
|
interface Window {
|
|
attachEvent: (eventNameWithOn:string, callback: () => void) => void,
|
|
clientWidth: number
|
|
}
|
|
|
|
interface Document {
|
|
//parentWindow: any // Thanks again, IE.
|
|
|
|
_KeymanWebSelectionStart: number,
|
|
_KeymanWebSelectionEnd: number
|
|
}
|
|
|
|
interface Element {
|
|
_kmwAttachment: AttachmentInfo, // Used to track each input element's attachment data.
|
|
shim: HTMLElement, // Used in subkey elements for smooth fading.
|
|
|
|
_KeymanWebSelectionStart: number,
|
|
_KeymanWebSelectionEnd: number,
|
|
|
|
styleSheet: CSSStyleDeclaration, // Extension of IE. TS ignores it because of this.
|
|
unSelectable: string,
|
|
|
|
// Touch element extensions
|
|
base: HTMLElement, // Refers to the aliased element. Is a property of the alias.
|
|
disabled: boolean,
|
|
kmwInput: boolean,
|
|
_kmwResizeHandler: (e: any) => void,
|
|
|
|
// Used by our util.wait / util.alert system
|
|
dismiss: () => void
|
|
}
|
|
|
|
interface CSSStyleDeclaration {
|
|
MozBoxSizing: any,
|
|
MozUserSelect: any,
|
|
KhtmlUserSelect: any,
|
|
UserSelect: any,
|
|
WebkitUserSelect: any
|
|
}
|
|
|
|
interface HTMLStyleElement {
|
|
filter: any, // More IE-specific fields.
|
|
zoom: any
|
|
}
|
|
|
|
interface KeyboardEvent {
|
|
_kmw_block: boolean // Needed to prevent an old Firefox bug.
|
|
} |