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

Side by Side Diff: chrome/browser/resources/virtual_keyboard/layout_us.js

Issue 13652010: Add a virtual keyboard webui at chrome://keyboard/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 8 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
(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 SpecialKey('space', ' ', 'Spacebar'),
bshe 2013/04/04 23:55:25 drive by: this is probably included accidentally?
17 ],
18 [
19 new Key(C('\`'), C('~')),
20 new Key(C('1'), C('!')),
21 new Key(C('2'), C('@')),
22 new Key(C('3'), C('#')),
23 new Key(C('4'), C('$')),
24 new Key(C('5'), C('%')),
25 new Key(C('6'), C('^')),
26 new Key(C('7'), C('&')),
27 new Key(C('8'), C('*')),
28 new Key(C('9'), C('(')),
29 new Key(C('0'), C(')')),
30 new Key(C('-'), C('_')),
31 new Key(C('='), C('+')),
32 new SvgKey('backspace', 'Backspace', true /* repeat */)
33 ],
34 [
35 new SvgKey('tab', 'Tab'),
36 new Key(C('q'), C('Q')),
37 new Key(C('w'), C('W')),
38 new Key(C('e'), C('E')),
39 new Key(C('r'), C('R')),
40 new Key(C('t'), C('T')),
41 new Key(C('y'), C('Y')),
42 new Key(C('u'), C('U')),
43 new Key(C('i'), C('I')),
44 new Key(C('o'), C('O')),
45 new Key(C('p'), C('P')),
46 new Key(C('['), C('{')),
47 new Key(C(']'), C('}')),
48 new Key(C('\\'), C('|'), 'bar'),
49 ],
50 [
51 new SymbolKey(),
52 new Key(C('a'), C('A')),
53 new Key(C('s'), C('S')),
54 new Key(C('d'), C('D')),
55 new Key(C('f'), C('F')),
56 new Key(C('g'), C('G')),
57 new Key(C('h'), C('H')),
58 new Key(C('j'), C('J')),
59 new Key(C('k'), C('K')),
60 new Key(C('l'), C('L')),
61 new Key(C(';'), C(':')),
62 new Key(C('\''), C('"')),
63 new SvgKey('return', 'Enter')
64 ],
65 [
66 new ShiftKey('left-shift'),
67 new Key(C('z'), C('Z')),
68 new Key(C('x'), C('X')),
69 new Key(C('c'), C('C')),
70 new Key(C('v'), C('V')),
71 new Key(C('b'), C('B')),
72 new Key(C('n'), C('N')),
73 new Key(C('m'), C('M')),
74 new Key(C(','), C('<')),
75 new Key(C('.'), C('>')),
76 new Key(C('/'), C('?')),
77 new ShiftKey('right-shift')
78 ],
79 [
80 new SpecialKey('space', ' ', 'Spacebar'),
bshe 2013/04/04 23:55:25 drive by: this should probably be: new SvgKey(
bryeung 2013/04/05 17:17:46 Done.
81 ]
82 ];
83
84 // Add layout to KEYBOARDS, which is defined in common.js
85 KEYBOARDS['us'] = {
86 'definition': KEYS_US,
87 //"aspect": 3.15,
88 'aspect': 2.8,
89 };
OLDNEW
« no previous file with comments | « chrome/browser/resources/virtual_keyboard/index.html ('k') | chrome/browser/resources/virtual_keyboard/main.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698