OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 Polymer('kb-keyset', { | 5 Polymer('kb-keyset', { |
6 align: "center", | 6 align: "center", |
| 7 // Propagate flick gestures to keys in this keyset. |
| 8 flick: true, |
7 isDefault: false, | 9 isDefault: false, |
8 nextKeyset: undefined, | 10 nextKeyset: undefined, |
9 // Weight offsets for positioning the keyset. | 11 // Weight offsets for positioning the keyset. |
10 weightBottom: 15, | 12 weightBottom: 15, |
11 weightLeft: 10, | 13 weightLeft: 10, |
12 weightRight: 10, | 14 weightRight: 10, |
13 weightTop: 6, | 15 weightTop: 6, |
14 | 16 |
15 /** | 17 /** |
16 * Weight assigned to space between keys, of the form "xPitch yPitch". | 18 * Weight assigned to space between keys, of the form "xPitch yPitch". |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
93 var old = $('keyboard').querySelector('.activeKeyset'); | 95 var old = $('keyboard').querySelector('.activeKeyset'); |
94 if (old && old != this) | 96 if (old && old != this) |
95 old.classList.remove('activeKeyset'); | 97 old.classList.remove('activeKeyset'); |
96 this.classList.add('activeKeyset'); | 98 this.classList.add('activeKeyset'); |
97 this.fire('stateChange', { | 99 this.fire('stateChange', { |
98 state: 'keysetChanged', | 100 state: 'keysetChanged', |
99 value: this.id | 101 value: this.id |
100 }); | 102 }); |
101 }, | 103 }, |
102 }); | 104 }); |
OLD | NEW |