This repository has been archived by the owner on Feb 11, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
kbController.txt
76 lines (75 loc) · 4.38 KB
/
kbController.txt
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
Ext.define( 'Wiztalk.controller.override.KbController',
{ requires: 'Wiztalk.controller.KbController' },
function() {
Ext.override(Wiztalk.controller.KbController,
{
config: {
control: {
"#kbButton1": {
tap: 'onKbButtonTap'
},
"#kbButton2": {
tap: 'onKbButtonTap'
},
"#kbButton3": {
tap: 'onKbButtonTap'
},
"#kbButton4": {
tap: 'onKbButtonTap'
},
"#kbButton5": {
tap: 'onKbButtonTap'
},
"#kbButton6": {
tap: 'onKbButtonTap'
},
"#kbButton7": {
tap: 'onKbButtonTap'
},
"#kbButton8": {
tap: 'onKbButtonTap'
},
"#kbButton9": {
tap: 'onKbButtonTap'
},
"#kbButton0": {
tap: 'onKbButtonTap',
taphold: 'onKbButtonTapHold'
},
"#kbButtonStar": {
tap: 'onKbButtonTap',
taphold: 'onKbButtonTapHold'
},
"#kbButtonHash": {
tap: 'onKbButtonTap',
taphold: 'onKbButtonTapHold'
},
"#kbButtonDel": {
tap: 'onKbButtonDel'
},
"#kbButtonCompareOrAddContact": {
tap: 'onKbButtonCompare'
},
"#kbButtonSend": {
tap: 'onKbButtonSend'
}
}
},
onKbButtonTap: function(button, e, options) {
console.log("buton tapped");
},
onKbButtonTapHold: function(button, e, options) {
console.log("button long tap");
},
onKbButtonCompare: function(button, e, options) {
console.log("compare pressed");
},
onKbButtonDel: function(button, e, options) {
console.log("del pressed");
},
onKbButtonSend: function(button, e, options) {
console.log("send pressed");
}
} // overriding object as second param
);
});