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

Side by Side Diff: ui/keyboard/resources/layout_us.js

Issue 15176004: Web Component Virtual Keyboard (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: reviews Created 7 years, 7 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 | Annotate | Revision Log
OLDNEW
(Empty)
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 /**
6 * @fileoverview A simple English virtual keyboard implementation.
7 */
8
9 /**
10 * All keys for the rows of the keyboard.
11 * NOTE: every row below should have an aspect of 12.6.
12 * @type {Array.<Array.<BaseKey>>}
13 */
14 var KEYS_US = [
15 [
16 new SvgKey('tab', 'Tab'),
17 new Key(C('q'), C('Q'), C('1'), C('`')),
18 new Key(C('w'), C('W'), C('2'), C('~')),
19 new Key(C('e'), C('E'), C('3'), C('<', 'LessThan')),
20 new Key(C('r'), C('R'), C('4'), C('>', 'GreaterThan')),
21 new Key(C('t'), C('T'), C('5'), C('[')),
22 new Key(C('y'), C('Y'), C('6'), C(']')),
23 new Key(C('u'), C('U'), C('7'), C('{')),
24 new Key(C('i'), C('I'), C('8'), C('}')),
25 new Key(C('o'), C('O'), C('9'), C('\\')),
26 new Key(C('p'), C('P'), C('0'), C('|')),
27 new SvgKey('backspace', 'Backspace', true /* repeat */)
28 ],
29 [
30 new SymbolKey(),
31 new Key(C('a'), C('A'), C('!'), C('+')),
32 new Key(C('s'), C('S'), C('@'), C('=')),
33 new Key(C('d'), C('D'), C('#'), C(' ')),
34 new Key(C('f'), C('F'), C('$'), C(' ')),
35 new Key(C('g'), C('G'), C('%'), C(' ')),
36 new Key(C('h'), C('H'), C('^'), C(' ')),
37 new Key(C('j'), C('J'), C('&', 'Ampersand'), C(' ')),
38 new Key(C('k'), C('K'), C('*'), C(' ')),
39 new Key(C('l'), C('L'), C('('), C(' ')),
40 new Key(C(';'), C('\''), C(')'), C(' ')),
41 new SvgKey('return', 'Enter')
42 ],
43 [
44 new ShiftKey('left-shift'),
45 new Key(C('z'), C('Z'), C('/'), C(' ')),
46 new Key(C('x'), C('X'), C('-'), C(' ')),
47 new Key(C('c'), C('C'), C('\''), C(' ')),
48 new Key(C('v'), C('V'), C('\"'), C(' ')),
49 new Key(C('b'), C('B'), C(':'), C(' ')),
50 new Key(C('n'), C('N'), C(';'), C(' ')),
51 new Key(C('m'), C('M'), C('_'), C(' ')),
52 new Key(C(','), C('@'), C(','), C(' ')),
53 new Key(C('.'), C('!'), C('.'), C(' ')),
54 new Key(C('?'), C('/'), C('?'), C(' ')),
55 new ShiftKey('right-shift')
56 ],
57 [
58 new MicKey(),
59 new DotComKey(),
60 new SpecialKey('space', ' ', 'Spacebar'),
61 new SpecialKey('at', '@', '@'),
62 new HideKeyboardKey()
63 ]
64 ];
65
66 // Add layout to KEYBOARDS, which is defined in common.js
67 KEYBOARDS['us'] = {
68 'definition': KEYS_US,
69 'aspect': 4.50
70 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698