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

Unified Diff: chrome/browser/resources/keyboard/layout_us.js

Issue 7754019: Enable the keyboard to show the popup keyboard for inputting accented characters. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: address comments Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/resources/keyboard/layout_fr.js ('k') | chrome/browser/resources/keyboard/main.css » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/keyboard/layout_us.js
diff --git a/chrome/browser/resources/keyboard/layout_us.js b/chrome/browser/resources/keyboard/layout_us.js
index fb25de11c5e492554f85bd103b34d0569f0c6fd5..5bb446df6e56b84a539c870c1b1c6af0f1d065e0 100644
--- a/chrome/browser/resources/keyboard/layout_us.js
+++ b/chrome/browser/resources/keyboard/layout_us.js
@@ -14,44 +14,44 @@
var KEYS_US = [
[
new SvgKey('tab', 'Tab'),
- new Key(C('q'), C('Q'), C('1'), C('`')),
- new Key(C('w'), C('W'), C('2'), C('~')),
- new Key(C('e'), C('E'), C('3'), new Character('<', 'LessThan')),
- new Key(C('r'), C('R'), C('4'), new Character('>', 'GreaterThan')),
- new Key(C('t'), C('T'), C('5'), C('[')),
- new Key(C('y'), C('Y'), C('6'), C(']')),
- new Key(C('u'), C('U'), C('7'), C('{')),
- new Key(C('i'), C('I'), C('8'), C('}')),
- new Key(C('o'), C('O'), C('9'), C('\'')),
- new Key(C('p'), C('P'), C('0'), C('|')),
+ new Key(CP('q'), CP('Q'), CP('1'), CP('`')),
+ new Key(CP('w'), CP('W'), CP('2'), CP('~')),
+ new Key(CP('e'), CP('E'), CP('3'), CP('<', 'LessThan')),
+ new Key(CP('r'), CP('R'), CP('4'), CP('>', 'GreaterThan')),
+ new Key(CP('t'), CP('T'), CP('5'), CP('[')),
+ new Key(CP('y'), CP('Y'), CP('6'), CP(']')),
+ new Key(CP('u'), CP('U'), CP('7'), CP('{')),
+ new Key(CP('i'), CP('I'), CP('8'), CP('}')),
+ new Key(CP('o'), CP('O'), CP('9'), CP('\'')),
+ new Key(CP('p'), CP('P'), CP('0'), CP('|')),
new SvgKey('backspace', 'Backspace', true /* repeat */)
],
[
new SymbolKey(),
- new Key(C('a'), C('A'), C('!'), C('+')),
- new Key(C('s'), C('S'), C('@'), C('=')),
- new Key(C('d'), C('D'), C('#'), C(' ')),
- new Key(C('f'), C('F'), C('$'), C(' ')),
- new Key(C('g'), C('G'), C('%'), C(' ')),
- new Key(C('h'), C('H'), C('^'), C(' ')),
- new Key(C('j'), C('J'), new Character('&', 'Ampersand'), C(' ')),
- new Key(C('k'), C('K'), C('*'), C('#')),
- new Key(C('l'), C('L'), C('('), C(' ')),
- new Key(C('\''), C('\''), C(')'), C(' ')),
+ new Key(CP('a'), CP('A'), CP('!'), CP('+')),
+ new Key(CP('s'), CP('S'), CP('@'), CP('=')),
+ new Key(CP('d'), CP('D'), CP('#'), CP(' ')),
+ new Key(CP('f'), CP('F'), CP('$'), CP(' ')),
+ new Key(CP('g'), CP('G'), CP('%'), CP(' ')),
+ new Key(CP('h'), CP('H'), CP('^'), CP(' ')),
+ new Key(CP('j'), CP('J'), CP('&', 'Ampersand'), CP(' ')),
+ new Key(CP('k'), CP('K'), CP('*'), CP('#')),
+ new Key(CP('l'), CP('L'), CP('('), CP(' ')),
+ new Key(CP('\''), CP('\''), CP(')'), CP(' ')),
new SvgKey('return', 'Enter')
],
[
new ShiftKey('left_shift'),
- new Key(C('z'), C('Z'), C('/'), C(' ')),
- new Key(C('x'), C('X'), C('-'), C(' ')),
- new Key(C('c'), C('C'), C('\''), C(' ')),
- new Key(C('v'), C('V'), C('"'), C(' ')),
- new Key(C('b'), C('B'), C(':'), C('.')),
- new Key(C('n'), C('N'), C(';'), C(' ')),
- new Key(C('m'), C('M'), C('_'), C(' ')),
- new Key(C('!'), C('!'), C('{'), C(' ')),
- new Key(C('?'), C('?'), C('}'), C(' ')),
- new Key(C('/'), C('/'), C('\\'), C(' ')),
+ new Key(CP('z'), CP('Z'), CP('/'), CP(' ')),
+ new Key(CP('x'), CP('X'), CP('-'), CP(' ')),
+ new Key(CP('c'), CP('C'), CP('\''), CP(' ')),
+ new Key(CP('v'), CP('V'), CP('"'), CP(' ')),
+ new Key(CP('b'), CP('B'), CP(':'), CP('.')),
+ new Key(CP('n'), CP('N'), CP(';'), CP(' ')),
+ new Key(CP('m'), CP('M'), CP('_'), CP(' ')),
+ new Key(CP('!'), CP('!'), CP('{'), CP(' ')),
+ new Key(CP('?'), CP('?'), CP('}'), CP(' ')),
+ new Key(CP('/'), CP('/'), CP('\\'), CP(' ')),
new ShiftKey()
],
[
« no previous file with comments | « chrome/browser/resources/keyboard/layout_fr.js ('k') | chrome/browser/resources/keyboard/main.css » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698