Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(29)

Side by Side Diff: ui/keyboard/resources/elements/kb-keyset.html

Issue 23534021: Added persistent capitalization to the Virtual Keyboard. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Changed polymer attributes to camel case. Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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>
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698