Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 <!-- | 1 <!-- |
| 2 -- Copyright 2013 The Chromium Authors. All rights reserved. | 2 -- Copyright 2013 The Chromium Authors. All rights reserved. |
| 3 -- Use of this source code is governed by a BSD-style license that can be | 3 -- Use of this source code is governed by a BSD-style license that can be |
| 4 -- found in the LICENSE file. | 4 -- found in the LICENSE file. |
| 5 --> | 5 --> |
| 6 | 6 |
| 7 <polymer-element name="kb-keyboard" on-key-over="keyOver" on-key-up="keyUp" | 7 <polymer-element name="kb-keyboard" on-key-over="keyOver" on-key-up="keyUp" |
| 8 on-key-down="keyDown" on-key-longpress="keyLongpress" on-pointerup="up" | 8 on-key-down="keyDown" on-key-longpress="keyLongpress" on-pointerup="up" |
| 9 on-pointerdown="down" on-enable-sel="enableSel" | 9 on-pointerdown="down" on-enable-sel="enableSel" |
| 10 on-enable-dbl="enableDbl" on-key-out="keyOut" | 10 on-enable-dbl="enableDbl" on-key-out="keyOut" |
| (...skipping 194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 205 shift: null, | 205 shift: null, |
| 206 inputType: null, | 206 inputType: null, |
| 207 | 207 |
| 208 /** | 208 /** |
| 209 * The default input type to keyboard layout map. The key must be one of | 209 * The default input type to keyboard layout map. The key must be one of |
| 210 * the input box type values. | 210 * the input box type values. |
| 211 * @type {object} | 211 * @type {object} |
| 212 */ | 212 */ |
| 213 inputTypeToLayoutMap: { | 213 inputTypeToLayoutMap: { |
| 214 number: "numeric", | 214 number: "numeric", |
| 215 text: "qwerty" | 215 text: "qwerty", |
| 216 password: "system-qwerty" | |
|
bshe
2013/10/09 16:07:50
not sure if you did that. But could you also check
rsadam
2013/10/09 19:04:46
As we discussed offline, disabled this for webui.
| |
| 216 }, | 217 }, |
| 217 | 218 |
| 218 /** | 219 /** |
| 219 * Changes the current keyset. | 220 * Changes the current keyset. |
| 220 * @param {Object} detail The detail of the event that called this | 221 * @param {Object} detail The detail of the event that called this |
| 221 * function. | 222 * function. |
| 222 */ | 223 */ |
| 223 changeKeyset: function(detail) { | 224 changeKeyset: function(detail) { |
| 224 if (detail.relegateToShift && this.shift) { | 225 if (detail.relegateToShift && this.shift) { |
| 225 this.keyset = this.shift.textKeyset; | 226 this.keyset = this.shift.textKeyset; |
| (...skipping 409 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 635 } | 636 } |
| 636 } | 637 } |
| 637 } | 638 } |
| 638 if (keysetsLoaded) | 639 if (keysetsLoaded) |
| 639 console.error('No default keyset found for ' + this.layout); | 640 console.error('No default keyset found for ' + this.layout); |
| 640 return false; | 641 return false; |
| 641 } | 642 } |
| 642 }); | 643 }); |
| 643 </script> | 644 </script> |
| 644 </polymer-element> | 645 </polymer-element> |
| OLD | NEW |