-
Notifications
You must be signed in to change notification settings - Fork 17
/
Copy pathreact-virtual-keyboard.d.ts
88 lines (82 loc) · 2.61 KB
/
react-virtual-keyboard.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
declare module "virtual-keyboard" {
export interface Options {
type: string;
layout?: string;
color?: string;
class?: string;
updateOnChange?: boolean;
customLayout?: string[];
position?: boolean | Object;
reposition?: boolean;
css?: Object;
display?: Object;
language?: string | string[];
wheelMessage?: string;
comboRegex?: RegExp;
rtl?: boolean;
acceptValid?: boolean;
alwaysOpen?: boolean;
appendLocally?: boolean;
appendTo?: string | Object;
autoAccept?: boolean;
autoAcceptOnEsc?: boolean;
autoAcceptOnValid?: boolean;
cancelClose?: boolean;
caretToEnd?: boolean;
closeByClickEvent?: boolean;
combos?: Object;
enterMod?: string;
enterNavigation?: boolean;
ignoreEsc?: boolean;
initialFocus?: boolean;
keyBinding?: string;
lockInput?: boolean;
maxInsert?: boolean;
maxLength?: boolean | number;
noFocus?: boolean;
openOn?: string;
preventPaste?: string;
repeatDelay?: number;
repeatRate?: number;
resetDefault?: boolean;
restrictInclude?: string;
restrictInput?: boolean;
scrollAdjustment?: number | string;
stayOpen?: boolean;
stickyShift?: boolean;
stopAtEnd?: boolean;
tabNavigation?: boolean;
useCombos?: boolean;
usePreview?: boolean;
useWheel?: boolean;
userClosed?: boolean;
accepted?: (event: Event, keyboard: Element, el: Element) => void;
beforeClose?: () => any;
beforeInsert?: () => any;
beforeVisible?: () => any;
buildKey?: () => any;
canceled?: () => any;
change?: (event: Event, keyboard: Element, el: Element) => void;
hidden?: (event: Event, keyboard: Element, el: Element) => void;
initialized?: () => any;
restricted?: () => any;
switchInput?: () => any;
validate?: () => any;
visible?: (event: Event, keyboard: Element, el: Element) => void;
}
}
declare module "react-virtual-keyboard" {
import {Component} from "react";
import {Options} from "virtual-keyboard";
export interface KeyboardProps {
name?: string;
value?: string;
options?: Options;
callbackParent?: (e?: Event) => void;
}
export interface KeyboardState {
value: string;
className: string;
}
export default class Keyboard extends React.Component<KeyboardProps, KeyboardState> { }
}