equal
deleted
inserted
replaced
11 } |
11 } |
12 } |
12 } |
13 | } |
13 | } |
14 } |
14 } |
15 |
15 |
16 template "widget[@type='Keypad']", mode="widget_class" |
16 widget_class("Keypad") |
17 || |
17 || |
18 class KeypadWidget extends Widget{ |
|
19 |
|
20 on_key_click(symbols) { |
18 on_key_click(symbols) { |
21 var syms = symbols.split(" "); |
19 var syms = symbols.split(" "); |
22 this.shift |= this.caps; |
20 this.shift |= this.caps; |
23 this.editstr += syms[this.shift?syms.length-1:0]; |
21 this.editstr += syms[this.shift?syms.length-1:0]; |
24 this.shift = false; |
22 this.shift = false; |
108 if(this.CapsLock_sub && this.caps != this._caps){ |
106 if(this.CapsLock_sub && this.caps != this._caps){ |
109 this._caps = this.caps; |
107 this._caps = this.caps; |
110 (this.caps?this.activate_activable:this.inactivate_activable)(this.CapsLock_sub); |
108 (this.caps?this.activate_activable:this.inactivate_activable)(this.CapsLock_sub); |
111 } |
109 } |
112 } |
110 } |
113 } |
|
114 || |
111 || |
115 |
112 |
116 template "widget[@type='Keypad']", mode="widget_defs" { |
113 widget_defs("Keypad") { |
117 param "hmi_element"; |
114 param "hmi_element"; |
118 labels("Esc Enter BackSpace Keys Info Value"); |
115 labels("Esc Enter BackSpace Keys Info Value"); |
119 optional_labels("Sign Space NumDot"); |
116 optional_labels("Sign Space NumDot"); |
120 activable_labels("CapsLock Shift"); |
117 activable_labels("CapsLock Shift"); |
121 | init: function() { |
118 | init: function() { |