spiegel-keyman/web/source/kmwexthtml.ts
2018-01-26 08:32:41 +07:00

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.
}