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-keyset" attributes="nextKeyset isDefault" | 7 <polymer-element name="kb-keyset" attributes="nextKeyset isDefault |
8 on-key-up="keyUp" on-key-longpress="keyLongpress"> | 8 shiftLocksTo shiftLockable" on-key-up="keyUp" |
| 9 on-key-longpress="keyLongpress"> |
9 <template> | 10 <template> |
10 <style> | 11 <style> |
11 @host { | 12 @host { |
12 * { | 13 * { |
13 -webkit-box-orient: vertical; | 14 -webkit-box-orient: vertical; |
14 -webkit-box-flex: 1; | 15 -webkit-box-flex: 1; |
15 display: -webkit-box; | 16 display: -webkit-box; |
16 } | 17 } |
17 } | 18 } |
18 </style> | 19 </style> |
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
68 var leftOffset = activeAltKeySet.offset * event.target.clientWidth; | 69 var leftOffset = activeAltKeySet.offset * event.target.clientWidth; |
69 activeAltKeySet.style.left = event.target.offsetLeft - leftOffset + | 70 activeAltKeySet.style.left = event.target.offsetLeft - leftOffset + |
70 'px'; | 71 'px'; |
71 var nodes = activeAltKeySet.childNodes; | 72 var nodes = activeAltKeySet.childNodes; |
72 nodes[activeAltKeySet.offset].classList.add('active'); | 73 nodes[activeAltKeySet.offset].classList.add('active'); |
73 altkeyContainer.hidden = false; | 74 altkeyContainer.hidden = false; |
74 } | 75 } |
75 }); | 76 }); |
76 </script> | 77 </script> |
77 </polymer-element> | 78 </polymer-element> |
OLD | NEW |